projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5409ef
)
As per the docs, the value returned is -1 if the value entered is out of range [patch...
author
Kevin Hock
<hockkn@yahoo.com>
Sun, 6 Feb 2005 00:43:44 +0000
(
00:43
+0000)
committer
Kevin Hock
<hockkn@yahoo.com>
Sun, 6 Feb 2005 00:43:44 +0000
(
00:43
+0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31773
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/generic/numdlgg.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/generic/numdlgg.cpp
b/src/generic/numdlgg.cpp
index a4455a0b922810631c5d20feebdb023b2b20875d..0fb413c1ad14c53a8bddb2c3d018452f3fba4cc9 100644
(file)
--- a/
src/generic/numdlgg.cpp
+++ b/
src/generic/numdlgg.cpp
@@
-169,6
+169,7
@@
void wxNumberEntryDialog::OnOK(wxCommandEvent& WXUNUSED(event))
if ( m_value < m_min || m_value > m_max )
{
// not a number or out of range
+ m_value = -1;
EndModal(wxID_CANCEL);
}
@@
-198,7
+199,7
@@
long wxGetNumberFromUser(const wxString& msg,
wxNumberEntryDialog dialog(parent, msg, prompt, title,
value, min, max, pos);
if (dialog.ShowModal() == wxID_OK)
- return dialog.GetValue();
+
return dialog.GetValue();
return -1;
}