fixed issue for negative numbers starting by "-" in dialogs
This commit is contained in:
parent
642d1f2ea6
commit
9e3a042449
|
@ -402,7 +402,8 @@ int ReturnValueFromString( UserUnitType aUnit, const wxString& TextValue,
|
||||||
while( brk_point < buf.Len() )
|
while( brk_point < buf.Len() )
|
||||||
{
|
{
|
||||||
wxChar ch = buf[brk_point];
|
wxChar ch = buf[brk_point];
|
||||||
if( !( (ch >= '0' && ch <='9') || (ch == decimal_point) ) )
|
if( !( (ch >= '0' && ch <='9') || (ch == decimal_point)
|
||||||
|
|| (ch == '-') || (ch == '+') ) )
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue