[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Thu Jan 29 02:24:14 CET 2004


CVS commit by staikos: 

only draw points that are inside the plot region


  M +4 -0      kstplot.cpp   1.37


--- kdeextragear-2/kst/kst/kstplot.cpp  #1.36:1.37
@@ -894,4 +894,8 @@ void KstPlot::drawDotAt(QPainter& p, dou
   Y1 = PlotRegion.height() * (y_max - y) / (y_max - y_min) + PlotRegion.top();
 
+  if (X1 > PlotRegion.right() || X1 < PlotRegion.left() ||
+      Y1 < PlotRegion.top() || Y1 > PlotRegion.bottom()) {
+    return;
+  }
   p.setPen(QPen(QColor(0,0,0), 0));
   p.drawArc((int)X1 - 3, (int)Y1 - 3, 6, 6, 0, 5760);





More information about the Kst mailing list