r24663 by jghali - Code style fixes

scribus-commit scribus-commit at lists.scribus.net
Sun Jun 6 13:39:33 UTC 2021


Author: jghali
Date: Sun Jun  6 13:39:32 2021
New Revision: 24663

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

Modified:
    trunk/Scribus/scribus/ui/dasheditor.cpp

Modified: trunk/Scribus/scribus/ui/dasheditor.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24663&path=/trunk/Scribus/scribus/ui/dasheditor.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/dasheditor.cpp	(original)
+++ trunk/Scribus/scribus/ui/dasheditor.cpp	Sun Jun  6 13:39:32 2021
@@ -70,7 +70,7 @@
 	p->setLineWidth(0);
 	p->setFillMode(ScPainter::Solid);
 	p->setBrush(Qt::black);
-	for (int i = 0; i < m_dashValues.count(); i++)
+	for (int i = 0; i < m_dashValues.count(); ++i)
 	{
 		if (i % 2 == 0)
 			p->setBrush(Qt::black);
@@ -103,7 +103,7 @@
 		else
 			pw.setBrush(Qt::blue);
 		QPolygon cr;
-		cr.setPoints(3, qRound(center), 16, qRound(center-4), 29, qRound(center+4), 29);
+		cr.setPoints(3, qRound(center), 16, qRound(center - 4), 29, qRound(center + 4), 29);
 		pw.drawPolygon(cr);
 	}
 	pw.end();




More information about the scribus-commit mailing list