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

Mike Fenton mike at staikos.net
Mon Apr 6 18:32:13 CEST 2009


SVN commit 950203 by fenton:

Fix curve drawing offset in plot.


 M  +3 -2      plotitem.cpp  
 M  +1 -0      plotitem.h  


--- branches/work/kst/portto4/kst/src/libkstapp/plotitem.cpp #950202:950203
@@ -136,7 +136,7 @@
   _gnum++;
 
   setPlotBordersDirty(true);
-  connect(this, SIGNAL(updatePlotRect()), this, SLOT(redrawPlot()));
+  connect(this, SIGNAL(triggerRedraw()), this, SLOT(redrawPlot()));
   connect(this, SIGNAL(geometryChanged()), this, SLOT(setLabelsDirty()));
 }
 
@@ -1025,6 +1025,7 @@
   }
   _calculatedPlotRect = plot;
   _plotRectsDirty = false;
+  emit updatePlotRect();
 }
 
 
@@ -1083,7 +1084,7 @@
   _topPadding = top;
   _bottomPadding = bottom;
   setPlotRectsDirty();
-  updatePlotRect();
+  emit triggerRedraw();
 }
 
 
--- branches/work/kst/portto4/kst/src/libkstapp/plotitem.h #950202:950203
@@ -237,6 +237,7 @@
   Q_SIGNALS:
     void updatePlotRect();
     void updateAxes();
+    void triggerRedraw();
 
   public Q_SLOTS:
     void zoomFixedExpression(const QRectF &projection);


More information about the Kst mailing list