]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct the documentation of wxSpinCtrl initial and value arguments.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 15 May 2012 10:04:07 +0000 (10:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 15 May 2012 10:04:07 +0000 (10:04 +0000)
It does make sense to specify "initial" if "value" is empty.

See #13589.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/spinctrl.h

index fac812cb302b49f8cbddc721a9038bd5e9d01ea2..0b88027f090e8c6375b9bb47725360dc08d11127 100644 (file)
@@ -66,8 +66,9 @@ public:
         the control and if it has numeric value, the initial numeric value of
         the control, as returned by GetValue() will also be determined by it
         instead of by @a initial. Hence, it only makes sense to specify @a
-        initial if @a value is a non-empty string not convertible to a number,
-        otherwise @a initial is simply ignored.
+        initial if @a value is an empty string or is not convertible to a
+        number, otherwise @a initial is simply ignored and the number specified
+        by @a value is used.
 
         @param parent
             Parent window. Must not be @NULL.