[Kst] branches/work/kst/portto4/kst/src/datasources/ascii
Barth Netterfield
netterfield at astro.utoronto.ca
Sat Jun 5 22:01:44 CEST 2010
SVN commit 1134940 by netterfield:
Use defaults for unset settings.
M +1 -1 asciisourceconfig.cpp
M +5 -2 namedparameter.h
--- branches/work/kst/portto4/kst/src/datasources/ascii/asciisourceconfig.cpp #1134939:1134940
@@ -58,7 +58,7 @@
_fileNamePattern(""),
_indexInterpretation(Unknown),
_columnType(Whitespace),
- _columnDelimiter(""),
+ _columnDelimiter(","),
_columnWidth(DEFAULT_COLUMN_WIDTH),
_dataLine(0),
_readFields(false),
--- branches/work/kst/portto4/kst/src/datasources/ascii/namedparameter.h #1134939:1134940
@@ -61,8 +61,11 @@
}
const T& value() const {
- if (!_value_set)
- qDebug() << "Using unset value " << Key;
+ if (!_value_set) {
+ //qDebug() << "Using unset value " << Key << " using default: " << _default_value;
+ return _default_value;
+ }
+
return _value;
}
More information about the Kst
mailing list