[Kst] branches/work/kst/portto4/kst/src/libkst

Barth Netterfield netterfield at astro.utoronto.ca
Mon Feb 21 22:57:48 CET 2011


SVN commit 1222143 by netterfield:

Fix bugs in matrix labels.


 M  +6 -7      datamatrix.cpp  


--- branches/work/kst/portto4/kst/src/libkst/datamatrix.cpp #1222142:1222143
@@ -377,16 +377,15 @@
 
 LabelInfo DataMatrix::xLabelInfo() const {
   LabelInfo label_info;
-
   if (_fieldStrings.contains("x_quantity")) {
     label_info.quantity = _fieldStrings.value("x_quantity")->value();
   } else {
     label_info.quantity = QString();
   }
   if (_fieldStrings.contains("x_units")) {
-    label_info.quantity = _fieldStrings.value("x_units")->value();
+    label_info.units = _fieldStrings.value("x_units")->value();
   } else {
-    label_info.quantity = QString();
+    label_info.units = QString();
   }
 
   label_info.name = QString();
@@ -404,9 +403,9 @@
     label_info.quantity = QString();
   }
   if (_fieldStrings.contains("y_units")) {
-    label_info.quantity = _fieldStrings.value("y_units")->value();
+    label_info.units = _fieldStrings.value("y_units")->value();
   } else {
-    label_info.quantity = QString();
+    label_info.units = QString();
   }
 
   label_info.name = QString();
@@ -424,9 +423,9 @@
     label_info.quantity = QString();
   }
   if (_fieldStrings.contains("z_units")) {
-    label_info.quantity = _fieldStrings.value("z_units")->value();
+    label_info.units = _fieldStrings.value("z_units")->value();
   } else {
-    label_info.quantity = QString();
+    label_info.units = QString();
   }
 
   label_info.name = _field;


More information about the Kst mailing list