Fix warnings about implicit float or double to int conversions in wxMSW.
Make the conversions explicit as these warnings are harmless. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -284,7 +284,7 @@ wxSize wxSpinCtrlGenericBase::DoGetSizeFromTextSize(int xlen, int ylen) const
|
||||
|
||||
wxSize tsize(xlen + sizeBtn.x + MARGIN, totalS.y);
|
||||
#if defined(__WXMSW__)
|
||||
tsize.IncBy(0.4 * totalS.y + 4, 0);
|
||||
tsize.IncBy(4*totalS.y/10 + 4, 0);
|
||||
#elif defined(__WXGTK__)
|
||||
tsize.IncBy(totalS.y + 10, 0);
|
||||
#endif // MSW GTK
|
||||
|
||||
Reference in New Issue
Block a user