Reset wxSpinCtrl value to GetMin() if text string is invalid
Previously, wxSpinCtrl (using native control) and wxSpinCtrlDouble (using the generic implementation) behaved differently in this case, with the former changing its value but the latter keeping the last valid value instead. Make them behave the same by resetting the value in both cases and document this behaviour.
This commit is contained in:
@@ -114,6 +114,9 @@ Changes in behaviour not resulting in compilation errors
|
||||
|
||||
- wxChoice::GetString() now consistently asserts when passed an invalid index.
|
||||
|
||||
- wxSpinCtrlDouble now always resets its value to GetMin() if an invalid text
|
||||
string is passed to its SetValue() after its creation.
|
||||
|
||||
|
||||
Changes in behaviour which may result in build errors
|
||||
-----------------------------------------------------
|
||||
|
Reference in New Issue
Block a user