Further correction in case where string value is omitted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -409,6 +409,12 @@ bool wxSpinCtrl::Create(wxWindow *parent,
|
|||||||
if ( !value.empty() )
|
if ( !value.empty() )
|
||||||
{
|
{
|
||||||
SetValue(value);
|
SetValue(value);
|
||||||
|
m_oldValue = (int) wxAtol(value);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetValue(wxString::Format(wxT("%d"), initial));
|
||||||
|
m_oldValue = initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
// do it after finishing with m_hwndBuddy creation to avoid generating
|
// do it after finishing with m_hwndBuddy creation to avoid generating
|
||||||
|
Reference in New Issue
Block a user