[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Tue May 31 16:49:40 CEST 2005


SVN commit 420193 by staikos:

- be more tolerant of expressions in this case - strip whitespace before
determining that the user wanted one
- QStrings are empty by default


 M  +2 -6      kst2dplot.cpp  


--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #420192:420193
@@ -130,8 +130,6 @@
   _yTicksOutPlot = false;
   _xTransformed = false;
   _yTransformed = false;
-  _xTransformedExp = QString::null;
-  _yTransformedExp = QString::null;
 
   commonConstructor(in_tag, yscale_in, xscale_in, xmin_in, ymin_in,
                     xmax_in, ymax_in);
@@ -187,8 +185,6 @@
   _suppressBottom = false;
   _xTransformed = false;
   _yTransformed = false;
-  _xTransformedExp = QString::null;
-  _yTransformedExp = QString::null;
   
   // must stay here for plot loading correctness
   _pos_x = 0.0;
@@ -7289,12 +7285,12 @@
 
 void Kst2DPlot::setXTransformedExp(const QString& exp) {
   _xTransformedExp = exp;
-  _xTransformed = (!exp.isEmpty());
+  _xTransformed = !exp.stripWhiteSpace().isEmpty();
 }
 
 void Kst2DPlot::setYTransformedExp(const QString& exp) {
   _yTransformedExp = exp;
-  _yTransformed = (!exp.isEmpty());
+  _yTransformed = !exp.stripWhiteSpace().isEmpty();
 }
   
 const QString& Kst2DPlot::xTransformedExp() const {


More information about the Kst mailing list