X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa2e1f3d440ff138a1778fd571ce8cb79cca34c3..fd7b70bd79e06158cf8a10cdbeef77ad6d57c37b:/src/msw/spinctrl.cpp?ds=sidebyside diff --git a/src/msw/spinctrl.cpp b/src/msw/spinctrl.cpp index ee0c5794e9..a2a61fc04a 100644 --- a/src/msw/spinctrl.cpp +++ b/src/msw/spinctrl.cpp @@ -372,7 +372,8 @@ bool wxSpinCtrl::Create(wxWindow *parent, // set up fonts and colours (This is nomally done in MSWCreateControl) InheritAttributes(); - SetFont(GetDefaultAttributes().font); + if (!m_hasFont) + SetFont(GetDefaultAttributes().font); // set the size of the text window - can do it only now, because we // couldn't call DoGetBestSize() before as font wasn't set