[Kst] branches/work/kst/1.5/kst/src/libkstmath

Andrew Walker arwalker at sumusltd.com
Mon Jun 25 19:30:20 CEST 2007


SVN commit 680230 by arwalker:

Rename VectorView to Vector View for consistency with other data objects

 M  +14 -6     kstvectorview.cpp  
 M  +1 -1      labelparser.cpp  


--- branches/work/kst/1.5/kst/src/libkstmath/kstvectorview.cpp #680229:680230
@@ -129,7 +129,7 @@
 
 
 void KstVectorView::commonConstructor(const QString &in_tag) {
-  _typeString = i18n("VectorView");
+  _typeString = i18n("Vector View");
   _type = "VectorView";
 
   setTagName(KstObjectTag::fromString(in_tag));
@@ -193,10 +193,18 @@
   double ymin = inYVec->min();
   double ymax = inYVec->max();
 
-  if (_useXmin && _xmin) { xmin = _xmin->value(); }
-  if (_useXmax && _xmax) { xmax = _xmax->value(); }
-  if (_useYmin && _ymin) { ymin = _ymin->value(); }
-  if (_useYmax && _ymax) { ymax = _ymax->value(); }
+  if (_useXmin && _xmin) {
+    xmin = _xmin->value();
+  }
+  if (_useXmax && _xmax) {
+    xmax = _xmax->value();
+  }
+  if (_useYmin && _ymin) {
+    ymin = _ymin->value();
+  }
+  if (_useYmax && _ymax) {
+    ymax = _ymax->value();
+  }
 
   int NS;
   switch (interp()) {
@@ -439,7 +447,7 @@
   ts << l2 << "<useymax>" << _useYmax << "</useymax>" << endl;
   ts << l2 << "<ymaxtag>" << QStyleSheet::escape(_ymax->tag().displayString()) << "</ymaxtag>" << endl;
   if (_inputVectors.contains(IN_FLAGVECTOR)) { 
-      ts << l2 << "<flagtag>" << QStyleSheet::escape(_inputVectors[IN_FLAGVECTOR]->tag().displayString()) << "</flagtag>" << endl; 
+    ts << l2 << "<flagtag>" << QStyleSheet::escape(_inputVectors[IN_FLAGVECTOR]->tag().displayString()) << "</flagtag>" << endl; 
   }
   ts << indent << "</vectorview>" << endl;
 }
--- branches/work/kst/1.5/kst/src/libkstmath/labelparser.cpp #680229:680230
@@ -316,7 +316,7 @@
       } else {
         *skip = 1;
         setNormalChar(QChar(0x20), tail);  
-        return true;      
+        return true;
       }
       break;
 


More information about the Kst mailing list