Fix truncation of all float fields in styles

Originally committed to SVN as r6367.
This commit is contained in:
Thomas Goyne 2012-01-26 20:17:31 +00:00
parent 99a7eece9c
commit 92ae4a616e

View file

@ -185,7 +185,7 @@ static int get_next_int(wxStringTokenizer &tok) {
return temp; return temp;
} }
static int get_next_double(wxStringTokenizer &tok) { static double get_next_double(wxStringTokenizer &tok) {
double temp; double temp;
if (!get_next_string(tok).ToDouble(&temp)) if (!get_next_string(tok).ToDouble(&temp))
throw "Malformed style: could not parse double field"; throw "Malformed style: could not parse double field";