From 016924e14ce93c399d2f58f6d50dc5e35880f785 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Tue, 30 Jun 2020 19:29:54 +0200 Subject: [PATCH] Update wxSpinCtrl size while changing the base under OSX Changing the base changes the textual representation of the number so we need to reset the best size of numeric box to enforce size recalculation. --- src/generic/spinctlg.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generic/spinctlg.cpp b/src/generic/spinctlg.cpp index 47d2912bcd..5b7cbacec1 100644 --- a/src/generic/spinctlg.cpp +++ b/src/generic/spinctlg.cpp @@ -639,6 +639,7 @@ bool wxSpinCtrl::SetBase(int base) m_base = base; + m_textCtrl->InvalidateBestSize(); ResetTextValidator(); // ... but DoValueToText() after doing it.