fix a compiler warning
This commit is contained in:
parent
340c350fcb
commit
db663a0fae
@ -442,7 +442,7 @@ namespace nana{ namespace widgets
|
||||
}
|
||||
|
||||
if (pos.x > text_ptr->size())
|
||||
pos.x = text_ptr->size();
|
||||
pos.x = static_cast<decltype(pos.x)>(text_ptr->size());
|
||||
|
||||
pos.x = editor_._m_pixels_by_char(*text_ptr, pos.x) + editor_.text_area_.area.x;
|
||||
int pos_y = static_cast<int>((pos.y - editor_.points_.offset.y) * editor_.line_height() + editor_._m_text_top_base());
|
||||
|
Loading…
x
Reference in New Issue
Block a user