fixed issue for negative numbers starting by "-" in dialogs

This commit is contained in:
jean-pierre charras 2010-07-13 08:06:18 +02:00
parent 642d1f2ea6
commit 9e3a042449
1 changed files with 2 additions and 1 deletions

View File

@ -402,7 +402,8 @@ int ReturnValueFromString( UserUnitType aUnit, const wxString& TextValue,
while( brk_point < buf.Len() )
{
wxChar ch = buf[brk_point];
if( !( (ch >= '0' && ch <='9') || (ch == decimal_point) ) )
if( !( (ch >= '0' && ch <='9') || (ch == decimal_point)
|| (ch == '-') || (ch == '+') ) )
{
break;
}