r19922 by jghali - remove unnecessary indentation level

scribus-commit scribus-commit at lists.scribus.net
Sun Mar 15 12:32:28 UTC 2015


Author: jghali
Date: Sun Mar 15 12:32:28 2015
New Revision: 19922

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19922
Log:
remove unnecessary indentation level

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19922&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp (original)
+++ trunk/Scribus/scribus/scribusdoc.cpp Sun Mar 15 12:32:28 2015
@@ -16858,22 +16858,19 @@
 {
 	Selection* itemSelection = (customSelection!=0) ? customSelection : m_Selection;
 	assert(itemSelection!=0);
-	uint selectedItemCount=itemSelection->count();
+	uint selectedItemCount = itemSelection->count();
 	if (selectedItemCount == 0)
 		return;
 
-	if (selectedItemCount > 0)
-	{
-		for (uint i = 0; i < selectedItemCount; ++i)
-		{
-			PageItem *currItem = itemSelection->itemAt(i);
-			if (currItem != NULL && currItem->asTextFrame() && (currItem->nextInChain() != NULL || currItem->prevInChain() != NULL))
-					currItem->unlinkWithText(cutText);
-			}
-		regionsChanged()->update(QRectF());
-		changed();
-		itemSelection->itemAt(0)->emitAllToGUI();
-	}
+	for (uint i = 0; i < selectedItemCount; ++i)
+	{
+		PageItem *currItem = itemSelection->itemAt(i);
+		if (currItem != NULL && currItem->asTextFrame() && (currItem->nextInChain() != NULL || currItem->prevInChain() != NULL))
+				currItem->unlinkWithText(cutText);
+	}
+	regionsChanged()->update(QRectF());
+	changed();
+	itemSelection->itemAt(0)->emitAllToGUI();
 }
 
 void ScribusDoc::itemSelection_UnlinkTextFrameWithTextCut( Selection *customSelection)




More information about the scribus-commit mailing list