[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Wed Nov 9 03:21:32 CET 2005


SVN commit 479065 by staikos:

at least a temporary workaround for the error bar bug
The question is, what was this -supposed- to do?  I can't make any sense out of
KstPoint::dim() and I'm not even sure why it was used here.  I hardcoded the
value to 5.  The same will need to be applied elsewhere if it's OK.
CCBUG: 115966


 M  +3 -2      kstvcurve.cpp  


--- trunk/extragear/graphics/kst/kst/kstvcurve.cpp #479064:479065
@@ -1439,12 +1439,13 @@
           int X1i = d2i(X1);
           int Y1i = d2i(Y1);
           int Y2i = d2i(Y2);
+          int w = 6;
           p->drawLine(X1i, Y1i, X1i, Y2i);
           if (do_low_flag) {
-            p->drawLine(X1i + Point.dim(p), Y1i, X1i - Point.dim(p), Y1i);
+            p->drawLine(X1i + w, Y1i, X1i - w, Y1i);
           }
           if (do_high_flag) {
-            p->drawLine(X1i + Point.dim(p), Y2i, X1i - Point.dim(p), Y2i);
+            p->drawLine(X1i + w, Y2i, X1i - w, Y2i);
           }
         }
       }


More information about the Kst mailing list