diff --git a/include/wx/font.h b/include/wx/font.h index ef9bf45c71..4e986bb49f 100644 --- a/include/wx/font.h +++ b/include/wx/font.h @@ -141,7 +141,7 @@ public: // Need to define this one to avoid casting double to int too. explicit wxFontInfo(double pointSize) - { InitPointSize(pointSize); } + { InitPointSize(static_cast(pointSize)); } template explicit wxFontInfo(T pointSize) { InitPointSize(ToFloatPointSize(pointSize)); }