r23141 by jghali - Remove BezierMode's shiftSelItems by noticing it is always false

scribus-commit scribus-commit at lists.scribus.net
Mon Aug 19 14:16:45 UTC 2019


Author: jghali
Date: Mon Aug 19 14:16:44 2019
New Revision: 23141

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23141
Log:
Remove BezierMode's shiftSelItems by noticing it is always false

Modified:
    trunk/Scribus/scribus/canvasmode_drawbezier.cpp
    trunk/Scribus/scribus/canvasmode_drawbezier.h

Modified: trunk/Scribus/scribus/canvasmode_drawbezier.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23141&path=/trunk/Scribus/scribus/canvasmode_drawbezier.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_drawbezier.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode_drawbezier.cpp	Mon Aug 19 14:16:44 2019
@@ -66,7 +66,6 @@
 	MoveGX = MoveGY = false;
 	inItemCreation = false;
 	m_MouseButtonPressed = false;
-	shiftSelItems = false;
 	FirstPoly = true;
 }
 
@@ -126,7 +125,6 @@
 	Mxp = Myp = -1;
 	MoveGX = MoveGY = false;
 	inItemCreation = false;
-	shiftSelItems = false;
 	FirstPoly = true;
 	setModeCursor();
 }
@@ -219,7 +217,6 @@
 	m_doc->DragP = false;
 	m_doc->leaveDrag = false;
 	m_view->MidButt = false;
-	shiftSelItems = false;
 	if (m_view->groupTransactionStarted())
 	{
 		for (int i = 0; i < m_doc->m_Selection->count(); ++i)
@@ -270,7 +267,7 @@
 	
 	if (inItemCreation)
 	{
-		if ((GetItem(&currItem)) && (!shiftSelItems))
+		if (GetItem(&currItem))
 		{
 			newX = qRound(mousePointDoc.x()); //m_view->translateToDoc(m->x(), m->y()).x());
 			newY = qRound(mousePointDoc.y()); //m_view->translateToDoc(m->x(), m->y()).y());
@@ -290,7 +287,6 @@
 				Mxp = newX;
 				Myp = newY;
 			}
-			
 		}
 		else
 		{
@@ -482,7 +478,6 @@
 	m_doc->leaveDrag = false;
 //	m_canvas->m_viewMode.operItemResizing = false;
 	m_view->MidButt = false;
-	shiftSelItems = false;
 //	m_doc->SubMode = -1;
 	if (m_view->groupTransactionStarted())
 	{

Modified: trunk/Scribus/scribus/canvasmode_drawbezier.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23141&path=/trunk/Scribus/scribus/canvasmode_drawbezier.h
==============================================================================
--- trunk/Scribus/scribus/canvasmode_drawbezier.h	(original)
+++ trunk/Scribus/scribus/canvasmode_drawbezier.h	Mon Aug 19 14:16:44 2019
@@ -52,7 +52,7 @@
 	void finalizeItem(PageItem* item);
 	void selectPage(QMouseEvent *m);
 
-	bool inItemCreation, shiftSelItems, FirstPoly;
+	bool inItemCreation, FirstPoly;
 	bool m_MouseButtonPressed;
 	double Mxp, Myp;
 	double SeRx, SeRy;




More information about the scribus-commit mailing list