r24587 by jghali - Code style fixes

scribus-commit scribus-commit at lists.scribus.net
Fri Mar 26 20:10:17 UTC 2021


Author: jghali
Date: Fri Mar 26 20:10:17 2021
New Revision: 24587

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

Modified:
    trunk/Scribus/scribus/canvasmode_editweldpoint.cpp
    trunk/Scribus/scribus/pageitem.cpp

Modified: trunk/Scribus/scribus/canvasmode_editweldpoint.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24587&path=/trunk/Scribus/scribus/canvasmode_editweldpoint.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_editweldpoint.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode_editweldpoint.cpp	Fri Mar 26 20:10:17 2021
@@ -214,21 +214,21 @@
 			if (m_doc->unitIndex()!=SC_INCHES)
 			{
 				if ((buttonModifiers & Qt::ShiftModifier) && !(buttonModifiers & Qt::ControlModifier) && !(buttonModifiers & Qt::AltModifier))
-					moveBy=0.1;
+					moveBy = 0.1;
 				else if (!(buttonModifiers & Qt::ShiftModifier) && (buttonModifiers & Qt::ControlModifier) && !(buttonModifiers & Qt::AltModifier))
-					moveBy=10.0;
+					moveBy = 10.0;
 				else if ((buttonModifiers & Qt::ShiftModifier) && (buttonModifiers & Qt::ControlModifier) && !(buttonModifiers & Qt::AltModifier))
-					moveBy=0.01;
-				moveBy/=m_doc->unitRatio();//Lets allow movement by the current doc ratio, not only points
+					moveBy = 0.01;
+				moveBy /= m_doc->unitRatio();//Lets allow movement by the current doc ratio, not only points
 			}
 			else
 			{
 				if ((buttonModifiers & Qt::ShiftModifier) && !(buttonModifiers & Qt::ControlModifier) && !(buttonModifiers & Qt::AltModifier))
-					moveBy=0.1/m_doc->unitRatio();
+					moveBy = 0.1 / m_doc->unitRatio();
 				else if (!(buttonModifiers & Qt::ShiftModifier) && (buttonModifiers & Qt::ControlModifier) && !(buttonModifiers & Qt::AltModifier))
-					moveBy=1.0/m_doc->unitRatio();
+					moveBy = 1.0 / m_doc->unitRatio();
 				else if ((buttonModifiers & Qt::ShiftModifier) && (buttonModifiers & Qt::ControlModifier) && !(buttonModifiers & Qt::AltModifier))
-					moveBy=0.01/m_doc->unitRatio();
+					moveBy = 0.01 /m_doc->unitRatio();
 			}
 			moveBy /= m_canvas->m_viewMode.scale;
 			PageItem *currItem = m_doc->m_Selection->itemAt(0);

Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24587&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp	(original)
+++ trunk/Scribus/scribus/pageitem.cpp	Fri Mar 26 20:10:17 2021
@@ -799,13 +799,13 @@
 	if (dX==0.0 && dY==0.0)
 		return;
 	invalid = true;
-	if (dX!=0.0)
+	if (dX != 0.0)
 	{
 		m_xPos += dX;
 		gXpos += dX;
 		BoundingX += dX;
 	}
-	if (dY!=0.0)
+	if (dY != 0.0)
 	{
 		m_yPos += dY;
 		gYpos += dY;




More information about the scribus-commit mailing list