[Kst] extragear/graphics/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Tue Nov 22 23:40:58 CET 2005


SVN commit 482431 by netterfield:

Ellipses now consider their border width in drawing...



 M  +1 -1      kstbasecurve.h  
 M  +4 -1      kstviewellipse.cpp  


--- trunk/extragear/graphics/kst/kst/kstbasecurve.h #482430:482431
@@ -107,7 +107,7 @@
     // Deal with the legend tag.
     // The actual text is always stored in the base class.
     // If _legendText == QString("") then the tagname should be used as the legend text.
-    // The label is parsed every time the legnend text is changed.
+    // The label is parsed every time the legend text is changed.
     virtual Label::Parsed *parsedLegendTag();
     virtual void updateParsedLegendTag();
     
--- trunk/extragear/graphics/kst/kst/kstviewellipse.cpp #482430:482431
@@ -65,7 +65,10 @@
   } else {
     p.setBrush(_foregroundColor);
   }
-  p.drawEllipse(geometry());
+  //p.drawEllipse(geometry());
+  p.drawEllipse(geometry().x()+_borderWidth/2, geometry().y()+_borderWidth/2,
+                geometry().width()-_borderWidth, geometry().height()-_borderWidth);
+
   KstViewObject::paint(type, p, bounds);
 }
 


More information about the Kst mailing list