r20059 by jghali - cosmetic change

scribus-commit scribus-commit at lists.scribus.net
Wed May 6 22:45:33 UTC 2015


Author: jghali
Date: Wed May  6 22:45:33 2015
New Revision: 20059

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20059
Log:
cosmetic change

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20059&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Wed May  6 22:45:33 2015
@@ -6449,25 +6449,26 @@
 	doc->m_Selection->delaySignalsOn();
 	view->SelectItem(ite, true, single);
 	doc->m_Selection->delaySignalsOff();
+
+	if (doc->m_Selection->isEmpty())
+		return;
 	doc->m_Selection->connectItemToGUI();
-	if (!doc->m_Selection->isEmpty())
-	{
-		PageItem *currItem = doc->m_Selection->itemAt(0);
-		QTransform itemTrans = currItem->getTransform();
-		double xOffset=0.0,yOffset=0.0;
-		switch (position)
-		{
-			case 1: //top left
-				break;
-			default: //center
-				xOffset = currItem->width() / 2.0;
-				yOffset = currItem->height() / 2.0;
-				break;
-		}
-
-		QPointF point = itemTrans.map(QPointF(xOffset, yOffset));
-		view->SetCCPo(point.x(), point.y());
-	}
+
+	PageItem *currItem = doc->m_Selection->itemAt(0);
+	QTransform itemTrans = currItem->getTransform();
+	double xOffset=0.0,yOffset=0.0;
+	switch (position)
+	{
+		case 1: //top left
+			break;
+		default: //center
+			xOffset = currItem->width() / 2.0;
+			yOffset = currItem->height() / 2.0;
+			break;
+	}
+
+	QPointF point = itemTrans.map(QPointF(xOffset, yOffset));
+	view->SetCCPo(point.x(), point.y());
 }
 
 void ScribusMainWindow::selectItemFromOutlines(PageItem *ite, bool single, int cPos)




More information about the scribus-commit mailing list