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

List:       kde-commits
Subject:    koffice/filters/karbon/svg
From:       Adrian Page <adrian () pagenet ! plus ! com>
Date:       2004-04-30 21:04:04
Message-ID: 20040430210404.0DB7C9953 () office ! kde ! org
[Download RAW message or body]

CVS commit by page: 

Arguments can be evaluated in any order so pre/post inc/decrement leads to undefined \
behaviour.


  M +6 -3      svgimport.cc   1.124


--- koffice/filters/karbon/svg/svgimport.cc  #1.123:1.124
@@ -742,13 +742,16 @@ SvgImport::parseGroup( VGroup *grp, cons
                         points.remove( '\n' );
                         QStringList pointList = QStringList::split( ' ', points );
-                        for( QStringList::Iterator it = pointList.begin(); it != \
pointList.end(); it++ ) +                        for( QStringList::Iterator it = \
pointList.begin(); it != pointList.end(); )  {
+                                KoPoint point;
+                                point.setX( (*(it++)).toDouble() );
+                                point.setY( (*(it++)).toDouble() );
                                 if( bFirst )
                                 {
-                                        path->moveTo( KoPoint( (*(it++)).toDouble(), \
(*it).toDouble() ) ); +                                        path->moveTo( point );
                                         bFirst = false;
                                 }
                                 else
-                                        path->lineTo( KoPoint( (*(it++)).toDouble(), \
(*it).toDouble() ) ); +                                        path->lineTo( point );
                         }
                         if( b.tagName() == "polygon" ) path->close();


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

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