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

Barth Netterfield netterfield at astro.utoronto.ca
Wed Mar 13 14:51:23 UTC 2013


SVN commit 1344108 by netterfield:



 M  +1 -1      curve.cpp  


--- branches/work/kst/portto4/kst/src/libkstmath/curve.cpp #1344107:1344108
@@ -1242,7 +1242,7 @@
         pt.setX(m_X * rX + b_X);
         pt.setY(m_Y * rY + b_Y);
         if (rect.contains(pt) && pt != lastPt &&
-            (lastPt.isNull() || (abs(pt.x() - lastPt.x()) > size))) { // || (abs(pt.y() - lastPt.y()) > size))) {
+            (lastPt.isNull() || (abs(pt.x() - lastPt.x()) > size) || ((size==0) && (abs(pt.y() - lastPt.y()) > 0)))) {
 #ifdef BENCHMARK
           ++numberOfPointsDrawn;
 #endif


More information about the Kst mailing list