[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Fri Nov 25 04:01:20 CET 2005


SVN commit 483079 by staikos:

initialize variable, set dirty when dirty, and don't do things we don't need to


 M  +7 -4      kstviewellipse.cpp  


--- trunk/extragear/graphics/kst/kst/kstviewellipse.cpp #483078:483079
@@ -34,7 +34,7 @@
 
 KstViewEllipse::KstViewEllipse(const QDomElement& e)
 : KstViewObject(e) {
-  
+  _transparentFill = false;
   QDomNode n = e.firstChild();
   while (!n.isNull()) {
     QDomElement el = n.toElement(); 
@@ -82,9 +82,9 @@
 
 void KstViewEllipse::setBorderColor(const QColor& c) {
   if (_borderColor != c) {
+    _borderColor = c;
     setDirty();
   }
-  _borderColor = c;
 }
 
 
@@ -95,9 +95,9 @@
 
 void KstViewEllipse::setBorderWidth(int width) {
   if (_borderWidth != width) {
+    _borderWidth = width;
     setDirty();
   }
-  _borderWidth = width;
 }
 
 
@@ -158,7 +158,10 @@
 
     
 void KstViewEllipse::setTransparentFill(bool yes) {
-  _transparentFill = yes;
+  if (_transparentFill != yes) {
+    _transparentFill = yes;
+    setDirty();
+  }
 }
 
 


More information about the Kst mailing list