From eef5fa245b7261347280493719a5f26e125f2e1d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 26 Apr 2021 15:06:04 +0100 Subject: [PATCH] Update wxSpinCtrlDouble::SetValue() documentation too This should have been done together with the other related updates in 35fa1f93bc (Reset wxSpinCtrl value to GetMin() if text string is invalid, 2021-04-23), but was forgotten there. See #19140. --- interface/wx/spinctrl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/interface/wx/spinctrl.h b/interface/wx/spinctrl.h index 6371aeec7c..2ee73557a1 100644 --- a/interface/wx/spinctrl.h +++ b/interface/wx/spinctrl.h @@ -368,10 +368,10 @@ public: Sets the value of the spin control. It is recommended to use the overload taking a double value instead. - The behaviour of this function when @a text doesn't represent a valid - number currently differs between the platforms, however - passing an empty string does clear the text part contents, without - affecting the value returned by GetValue(), under all of them. + If @a text doesn't represent a valid number, it may not be shown in the + text part of the control at all (only empty string is guaranteed to be + supported under all platforms) and the numeric value will be changed to + GetMin(). Notice that, unlike wxTextCtrl::SetValue(), but like most of the other setter methods in wxWidgets, calling this method does not generate any