r23703 by jghali - Remove useless blank lines and small code style fixes

scribus-commit scribus-commit at lists.scribus.net
Tue May 5 22:00:38 UTC 2020


Author: jghali
Date: Tue May  5 22:00:38 2020
New Revision: 23703

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23703
Log:
Remove useless blank lines and small code style fixes

Modified:
    trunk/Scribus/scribus/canvasmode_create.cpp

Modified: trunk/Scribus/scribus/canvasmode_create.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23703&path=/trunk/Scribus/scribus/canvasmode_create.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_create.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode_create.cpp	Tue May  5 22:00:38 2020
@@ -57,16 +57,11 @@
 #include "util.h"
 #include "util_math.h"
 
-
-
-
-
 CreateMode::CreateMode(ScribusView* view) : CanvasMode(view) 
 {
 	canvasPressCoord.setXY(-1.0, -1.0);
 	mouseGlobalCoord.setXY(-1.0, -1.0);
 }
-
 
 void CreateMode::drawControls(QPainter* p) 
 {
@@ -234,7 +229,6 @@
 	m_MouseButtonPressed = false;
 	m_canvas->resetRenderMode();
 }
-
 
 void CreateMode::mouseMoveEvent(QMouseEvent *m)
 {
@@ -294,9 +288,9 @@
 				double ny = np2.y();
 				m_doc->ApplyGuides(&nx, &ny);
 				m_doc->ApplyGuides(&nx, &ny,true);
-				if (nx!=np2.x())
+				if (nx != np2.x())
 					xSnap = nx;
-				if (ny!=np2.y())
+				if (ny != np2.y())
 					ySnap = ny;
 				// #8959 : suppress qRound here as this prevent drawing line with angle constrain
 				// precisely and does not allow to stick precisely to grid or guides
@@ -392,8 +386,6 @@
 	inItemCreation = true;
 }
 
-
-
 void CreateMode::mouseReleaseEvent(QMouseEvent *m)
 {
 	modifiers = m->modifiers();
@@ -437,8 +429,6 @@
 	}
 	inItemCreation = false;
 }
-
-
 
 void CreateMode::selectPage(QMouseEvent *m)
 {




More information about the scribus-commit mailing list