[Kst] branches/kst/1.3/kst/src/libkstmath

George Staikos staikos at kde.org
Fri Oct 6 04:54:17 CEST 2006


SVN commit 592881 by staikos:

flush polyline when drawing a segment before a gap



 M  +4 -0      kstvcurve.cpp  


--- branches/kst/1.3/kst/src/libkstmath/kstvcurve.cpp #592880:592881
@@ -1045,6 +1045,10 @@
                     minY = Ly;
                   }
                   if (KDE_ISUNLIKELY(minY >= Ly && minY <= Hy && maxY >= Ly && maxY <= Hy)) {
+                    if (index > 0) {
+                      p->drawPolyline(points, 0, index);
+                      index = 0;
+                    }
                     p->drawLine(X2i, d2i(minY), X2i, d2i(maxY));
                   }
                 }


More information about the Kst mailing list