r21618 by jghali - code style fixes
scribus-commit
scribus-commit at lists.scribus.net
Thu Dec 8 23:59:35 UTC 2016
Author: jghali
Date: Thu Dec 8 23:59:35 2016
New Revision: 21618
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21618
Log:
code style fixes
Modified:
trunk/Scribus/scribus/fpointarray.cpp
Modified: trunk/Scribus/scribus/fpointarray.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21618&path=/trunk/Scribus/scribus/fpointarray.cpp
==============================================================================
--- trunk/Scribus/scribus/fpointarray.cpp (original)
+++ trunk/Scribus/scribus/fpointarray.cpp Thu Dec 8 23:59:35 2016
@@ -896,7 +896,7 @@
QString d = svgPath;
d = d.replace( QRegExp( "," ), " ");
bool ret = false;
- if( !d.isEmpty() )
+ if (!d.isEmpty())
{
d = d.simplified();
QByteArray pathData = d.toLatin1();
@@ -909,12 +909,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 'f':
case 'F':
@@ -1087,18 +1087,18 @@
}
}
lastCommand = command;
- if(*ptr == '+' || *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