diff --git a/common/common.cpp b/common/common.cpp index 287b519b50..00db6a410a 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -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; }