r21617 by jghali - code style fixes

scribus-commit scribus-commit at lists.scribus.net
Thu Dec 8 23:58:08 UTC 2016


Author: jghali
Date: Thu Dec  8 23:58:08 2016
New Revision: 21617

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21617
Log:
code style fixes

Modified:
    branches/Version14x/Scribus/scribus/fpointarray.cpp

Modified: branches/Version14x/Scribus/scribus/fpointarray.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21617&path=/branches/Version14x/Scribus/scribus/fpointarray.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/fpointarray.cpp	(original)
+++ branches/Version14x/Scribus/scribus/fpointarray.cpp	Thu Dec  8 23:58:08 2016
@@ -904,7 +904,7 @@
 	QString d = svgPath;
 	d = d.replace( QRegExp( "," ), " ");
 	bool ret = false;
-	if( !d.isEmpty() )
+	if (!d.isEmpty() )
 	{
 		d = d.simplified();
 		QByteArray pathData = d.toLatin1();
@@ -916,12 +916,12 @@
 		svgInit();
 		char command = *(ptr++), lastCommand = ' ';
 		subpathx = subpathy = curx = cury = contrlx = contrly = 0.0;
-		while( ptr < end )
-		{
-			if( *ptr == ' ' )
+		while (ptr < end)
+		{
+			if (*ptr == ' ')
 				ptr++;
 			relative = false;
-			switch( command )
+			switch (command)
 			{
 			case 'm':
 				relative = true;
@@ -1087,18 +1087,18 @@
 				}
 			}
 			lastCommand = command;
-			if(*ptr == '+' || *ptr == '-' || (*ptr >= '0' && *ptr <= '9'))
+			if (*ptr == '+' || *ptr == '-' || *ptr == '.' || (*ptr >= '0' && *ptr <= '9'))
 			{
 				// there are still coords in this command
-				if(command == 'M')
+				if (command == 'M')
 					command = 'L';
-				else if(command == 'm')
+				else if (command == 'm')
 					command = 'l';
 			}
 			else
 				command = *(ptr++);
 
-			if( lastCommand != 'C' && lastCommand != 'c' &&
+			if (lastCommand != 'C' && lastCommand != 'c' &&
 			        lastCommand != 'S' && lastCommand != 's' &&
 			        lastCommand != 'Q' && lastCommand != 'q' &&
 			        lastCommand != 'T' && lastCommand != 't')




More information about the scribus-commit mailing list