X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d2e831b091a0245a5760fd9bb360daae510fbb0..824fd93d761e1e697be19a4ca582c5259e12c8ea:/src/msw/spinctrl.cpp?ds=sidebyside diff --git a/src/msw/spinctrl.cpp b/src/msw/spinctrl.cpp index 2531dd54c9..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 @@ -384,8 +385,6 @@ bool wxSpinCtrl::Create(wxWindow *parent, sizeText.y = EDIT_HEIGHT_FROM_CHAR_HEIGHT(cy); } - //DoMoveWindow(pos.x, pos.y, - // sizeText.x + sizeBtn.x + MARGIN_BETWEEN, sizeText.y); SetBestSize(size); (void)::ShowWindow(GetBuddyHwnd(), SW_SHOW);