From c4b2d5c1ffe8c6387bc3ab442b067c6f2515eb10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20R=C4=83ceanu?= Date: Sat, 11 Feb 2017 23:37:35 +0100 Subject: [PATCH] Fix wxMSW wxSpinCtrl initial position wxSpinCtrl created at the given position was always placed at (0, 0) instead since 05b980aba1db842b9be77deae58af3bfffb92d1d ("Fix wxMSW wxSpinCtrl appearance: show arrows inside the control"). Fix this in the minimally intrusive way for now by just putting it at the right position instead of using hard-coded (0, 0) which was done before for some reason. See #12297. --- src/msw/spinctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/spinctrl.cpp b/src/msw/spinctrl.cpp index ea0f28ed2c..8c50bfef6e 100644 --- a/src/msw/spinctrl.cpp +++ b/src/msw/spinctrl.cpp @@ -319,7 +319,7 @@ bool wxSpinCtrl::Create(wxWindow *parent, // create the spin button - if ( !wxSpinButton::Create(parent, id, wxPoint(0, 0), wxSize(0, 0), style, name) ) + if ( !wxSpinButton::Create(parent, id, pos, wxSize(0, 0), style, name) ) { return false; }