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

List:       kde-commits
Subject:    koffice/lib/kopainter
From:       Rob Buis <rwlbuis () xs4all ! nl>
Date:       2003-10-14 19:47:03
[Download RAW message or body]

CVS commit by buis: 


Keeping in sync.


  M +4 -5      svgpathparser.cc   1.3


--- koffice/lib/kopainter/svgpathparser.cc  #1.2:1.3
@@ -19,6 +19,6 @@
 
 #include "svgpathparser.h"
+#include <qstring.h>
 #include <math.h>
-#include <qregexp.h>
 
 // parses the coord into number and forwards to the next token
@@ -90,9 +90,8 @@ void
 SVGPathParser::parseSVG( const QString &s, bool process )
 {
-        QString d = s;
-        d = d.replace( QRegExp( "," ), " ");
-
-        if( !d.isEmpty() )
+        if( !s.isEmpty() )
         {
+                QString d = s;
+                d = d.replace( ',', ' ' );
                 d = d.simplifyWhiteSpace();
 


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

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