[Kst] Curve polygons

Peter Kümmel syntheticpp at gmx.net
Thu Mar 11 01:07:40 CET 2010


At the moment kst is really broken on Windows.

When a gyrodata curve is drawn the curve is plotted
but then is immediately erased (Qt 4.6.2).
Also kst crashes when the window is resized very often.
After hours of debugging I've found that disabling
the drawing of the checkBox helps (see patch).
But this patch makes no sense, the bug must be
somewhere else.

I could enable the checkbox when drawing of the polygons
in curve.cpp, "p->drawPolyline(poly)" is disabled.

Could it be that the polygons are buggy and somehow irritate
QPainter?  Is the polygon code bullet proved?
Or is it a maybe Qt/Windows bug?
Any Ideas?

Peter



Index: src/libkstapp/viewitem.cpp
===================================================================
--- src/libkstapp/viewitem.cpp  (Revision 1101107)
+++ src/libkstapp/viewitem.cpp  (Arbeitskopie)
@@ -717,7 +717,8 @@
         painter->restore();
       }
       painter->setBrush(Qt::transparent);
-      painter->drawPath(checkBox());
+      //painter->drawPath(checkBox());
       painter->restore();
     }
 #if DEBUG_GEOMETRY


More information about the Kst mailing list