[Kst] extragear/graphics/kst/kst/datasources/ascii
George Staikos
staikos at kde.org
Fri Jun 24 21:06:30 CEST 2005
SVN commit 428637 by staikos:
forgot about -. Any other cases we should support for number starters?
The only others I can think of are "+eE." but I think they can also be
considered malformed.
M +2 -2 ascii.cpp
--- trunk/extragear/graphics/kst/kst/datasources/ascii/ascii.cpp #428636:428637
@@ -415,7 +415,7 @@
incol = true;
++i_col;
if (i_col == col) {
- if (isdigit(_tmpBuf[ch])) {
+ if (isdigit(_tmpBuf[ch]) || _tmpBuf[ch] == '-') {
v[i] = atof(_tmpBuf + ch);
} else {
v[i] = NAN;
@@ -446,7 +446,7 @@
incol = true;
++i_col;
if (i_col == col) {
- if (isdigit(_tmpBuf[ch])) {
+ if (isdigit(_tmpBuf[ch]) || _tmpBuf[ch] == '-') {
v[i] = atof(_tmpBuf + ch);
} else {
v[i] = NAN;
More information about the Kst
mailing list