Skip to content

Commit

Permalink
Parse dot delimiter when shortening numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
morevnaproject committed Mar 19, 2015
1 parent 44ecec7 commit 4ff11a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synfig-core/src/synfig/distance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Distance::get_string(int digits)const
String str(strprintf(fmt.c_str(),value_));
while (*str.rbegin() == '0' && str.length() > 1)
str=str.substr(0, str.size()-1);
if (*str.rbegin() == ',')
if (*str.rbegin() == ',' or *str.rbegin() == '.')
str=str.substr(0, str.size()-1);
if (str.length()==0)
str='0';
Expand Down

0 comments on commit 4ff11a8

Please sign in to comment.