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.
This commit is contained in:
Artur Wieczorek 2020-06-30 19:29:54 +02:00
parent 5a676ac855
commit 016924e14c

View File

@ -639,6 +639,7 @@ bool wxSpinCtrl::SetBase(int base)
m_base = base;
m_textCtrl->InvalidateBestSize();
ResetTextValidator();
// ... but DoValueToText() after doing it.