[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/karbon/shapes
From:       Rob Buis <rwlbuis () xs4all ! nl>
Date:       2003-03-21 20:31:51
[Download RAW message or body]

CVS commit by buis: 

Fix for fill/stroke loading of shapes...


  M +4 -1      vellipse.cc   1.17
  M +4 -1      vrectangle.cc   1.12
  M +4 -1      vroundrect.cc   1.14
  M +4 -1      vsinus.cc   1.10
  M +4 -1      vspiral.cc   1.13
  M +4 -1      vstar.cc   1.25


--- koffice/karbon/shapes/vellipse.cc  #1.16:1.17
@@ -152,5 +152,8 @@ VEllipse::load( const QDomElement& eleme
         setState( normal );
 
-        VObject::load( element );
+        QDomNodeList list = element.childNodes();
+        for( uint i = 0; i < list.count(); ++i )
+                if( list.item( i ).isElement() )
+                        VObject::load( list.item( i ).toElement() );
 
         m_rx = element.attribute( "rx" ).toDouble(),

--- koffice/karbon/shapes/vrectangle.cc  #1.11:1.12
@@ -79,5 +79,8 @@ VRectangle::load( const QDomElement& ele
         setState( normal );
 
-        VObject::load( element );
+        QDomNodeList list = element.childNodes();
+        for( uint i = 0; i < list.count(); ++i )
+                if( list.item( i ).isElement() )
+                        VObject::load( list.item( i ).toElement() );
 
         m_width  = element.attribute( "width" ).toDouble(),

--- koffice/karbon/shapes/vroundrect.cc  #1.13:1.14
@@ -103,5 +103,8 @@ VRoundRect::load( const QDomElement& ele
         setState( normal );
 
-        VObject::load( element );
+        QDomNodeList list = element.childNodes();
+        for( uint i = 0; i < list.count(); ++i )
+                if( list.item( i ).isElement() )
+                        VObject::load( list.item( i ).toElement() );
 
         m_width  = element.attribute( "width" ).toDouble(),

--- koffice/karbon/shapes/vsinus.cc  #1.9:1.10
@@ -162,5 +162,8 @@ VSinus::load( const QDomElement& element
         setState( normal );
 
-        VObject::load( element );
+        QDomNodeList list = element.childNodes();
+        for( uint i = 0; i < list.count(); ++i )
+                if( list.item( i ).isElement() )
+                        VObject::load( list.item( i ).toElement() );
 
         m_width  = element.attribute( "width" ).toDouble(),

--- koffice/karbon/shapes/vspiral.cc  #1.12:1.13
@@ -138,5 +138,8 @@ VSpiral::load( const QDomElement& elemen
         setState( normal );
 
-        VObject::load( element );
+        QDomNodeList list = element.childNodes();
+        for( uint i = 0; i < list.count(); ++i )
+                if( list.item( i ).isElement() )
+                        VObject::load( list.item( i ).toElement() );
 
         m_radius  = element.attribute( "radius" ).toDouble(),

--- koffice/karbon/shapes/vstar.cc  #1.24:1.25
@@ -296,5 +296,8 @@ VStar::load( const QDomElement& element 
         setState( normal );
 
-        VObject::load( element );
+        QDomNodeList list = element.childNodes();
+        for( uint i = 0; i < list.count(); ++i )
+                if( list.item( i ).isElement() )
+                        VObject::load( list.item( i ).toElement() );
 
         m_center.setX( element.attribute( "cx" ).toDouble() );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic