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

Barth Netterfield netterfield at astro.utoronto.ca
Mon Jul 20 21:38:34 CEST 2009


SVN commit 1000073 by netterfield:

Fix a bug with data mode and offset marker...



 M  +10 -0     devel-docs/Kst2Specs/Bugs  
 M  +8 -1      src/libkstapp/plotrenderitem.cpp  


--- branches/work/kst/portto4/kst/devel-docs/Kst2Specs/Bugs #1000072:1000073
@@ -1,3 +1,4 @@
+------------
 Plot sizes are not properly recovered on re-load
 Create a plot in kst.  Cleanup Layout->automatic
  -the plot now ~fills the window.
@@ -31,3 +32,12 @@
 
 Print to ps is not vector quality... it should be.
 It is also huge!
+
+--------------------
+
+Offset mode doesn't work in data mode.
+In a plot in kst, go into data mode.  Then use 'c' to leave a marker.
+It is left in the correct place.  Now move the mouse.  The offset to the marker
+is not shown, but it should be.  If you leave data mode, then it is.
+(behavior should be the same as 1.x).
+
--- branches/work/kst/portto4/kst/src/libkstapp/plotrenderitem.cpp #1000072:1000073
@@ -582,7 +582,14 @@
       }
     }
     if (!curveName.isEmpty()) {
-      QString message = curveName + QString(" (%1, %2)").arg(QString::number(matchedPoint.x(), 'G')).arg(QString::number(matchedPoint.y()));
+      QString message = curveName + QString(" (%1, %2)").
+                        arg(QString::number(matchedPoint.x(), 'G')).
+                        arg(QString::number(matchedPoint.y()));
+      if (_referencePointMode) {
+        message += QString(" [Offset: %1, %2]").
+                   arg(QString::number(matchedPoint.x() - _referencePoint.x(), 'G')).
+                   arg(QString::number(matchedPoint.y() - _referencePoint.y()));
+      }
       kstApp->mainWindow()->statusBar()->showMessage(message);
       _highlightPointActive = true;
       _highlightPoint = QPointF(matchedPoint.x(), matchedPoint.y());


More information about the Kst mailing list