Pcbnew: change general properties dialog rotation angle to text edit control.

This commit is contained in:
Wayne Stambaugh
2013-12-17 16:38:20 -05:00
parent 8fe06e12b9
commit ca11fcb5c9
9 changed files with 50 additions and 30 deletions
+15
View File
@@ -477,3 +477,18 @@ bool ReplaceIllegalFileNameChars( std::string* aName )
return changed;
}
wxString RemoveTrailingZeros( const wxString& aString )
{
wxString retv = aString;
int i = retv.Length();
while( --i > 0 && retv[i] == wxChar( '0' ) )
retv.RemoveLast();
if( retv[i] == wxChar( '.' ) )
retv.RemoveLast();
return retv;
}