summaryrefslogtreecommitdiff
path: root/wx+/popup_dlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/popup_dlg.cpp')
-rwxr-xr-xwx+/popup_dlg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/wx+/popup_dlg.cpp b/wx+/popup_dlg.cpp
index 6633d2ab..689b364e 100755
--- a/wx+/popup_dlg.cpp
+++ b/wx+/popup_dlg.cpp
@@ -34,7 +34,7 @@ void setBestInitialSize(wxTextCtrl& ctrl, const wxString& text, wxSize maxSize)
if (sz.x > bestWidth)
bestWidth = std::min(maxSize.x, sz.x);
- rowCount += (sz.x + maxSize.x - 1) / maxSize.x; //integer round up: consider line-wraps!
+ rowCount += numeric::integerDivideRoundUp(sz.x, maxSize.x); //integer round up: consider line-wraps!
rowHeight = std::max(rowHeight, sz.y); //all rows *should* have same height
return rowCount * rowHeight >= maxSize.y;
bgstack15