r23624 by jghali - Code style fixes

scribus-commit scribus-commit at lists.scribus.net
Mon Apr 20 02:15:45 UTC 2020


Author: jghali
Date: Mon Apr 20 02:15:45 2020
New Revision: 23624

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

Modified:
    trunk/Scribus/scribus/canvasmode.cpp
    trunk/Scribus/scribus/pageitem_textframe.cpp

Modified: trunk/Scribus/scribus/canvasmode.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23624&path=/trunk/Scribus/scribus/canvasmode.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode.cpp	Mon Apr 20 02:15:45 2020
@@ -438,9 +438,9 @@
 						psx->setRenderHint(QPainter::Antialiasing);
 						psx->setBrush(Qt::white);
 						psx->setPen(m_pen["handle"]);
-						handleRect.moveCenter(QPointF(x, y+h/2.0));
+						handleRect.moveCenter(QPointF(x, y + h / 2.0));
 						psx->drawRect(handleRect);
-						handleRect.moveCenter(QPointF(x+w, y+h/2.0));
+						handleRect.moveCenter(QPointF(x + w, y + h / 2.0));
 						psx->drawRect(handleRect);
 					}
 					else

Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23624&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp	(original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp	Mon Apr 20 02:15:45 2020
@@ -4561,7 +4561,7 @@
 		{
 			//find and delete notes
 			//if marks are in notes then they will be deleted further while note is physically deleted
-			for (int i=start; i < stop; ++i)
+			for (int i = start; i < stop; ++i)
 			{
 				if (i == itemText.length())
 					break;
@@ -4577,12 +4577,12 @@
 			stop -= marksNum;
 		}
 		//delete text
-		for (int i=start; i <= stop; ++i)
+		for (int i = start; i <= stop; ++i)
 		{
 			Mark* mark = i < itemText.length() && itemText.hasMark(i) ? itemText.mark(i) : nullptr;
 			const CharStyle& curParent = itemText.charStyle(i);
 			bool needParaAction = ((i < stop) && (itemText.text(i) == SpecialChars::PARSEP));
-			if (i==stop || !curParent.equiv(lastParent) || (mark && mark->isType(MARKNoteFrameType)) || needParaAction)
+			if (i == stop || !curParent.equiv(lastParent) || (mark && mark->isType(MARKNoteFrameType)) || needParaAction)
 			{
 				added = false;
 				lastIsDelete = false;




More information about the scribus-commit mailing list