Move HitTestForCorner and HitTestForEdge code from class_zone to polygon/PolyLine.cpp, to avoid redundant code.
Fix bug 1264248. Fix a very minor issue in RemoveTrailingZeros, for countries where the separator in floating numbers is a comma.
This commit is contained in:
+1
-1
@@ -487,7 +487,7 @@ wxString RemoveTrailingZeros( const wxString& aString )
|
||||
while( --i > 0 && retv[i] == wxChar( '0' ) )
|
||||
retv.RemoveLast();
|
||||
|
||||
if( retv[i] == wxChar( '.' ) )
|
||||
if( retv[i] == wxChar( '.' ) || retv[i] == wxChar( ',' ) )
|
||||
retv.RemoveLast();
|
||||
|
||||
return retv;
|
||||
|
||||
Reference in New Issue
Block a user