r17360 by jghali - remove some unneeded level of indentation

scribus-commit scribus-commit at lists.scribus.net
Tue Mar 6 21:53:02 UTC 2012


Author: jghali
Date: Tue Mar  6 21:53:02 2012
New Revision: 17360

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17360
Log:
remove some unneeded level of indentation

Modified:
    branches/Version14x/Scribus/scribus/canvasmode_normal.cpp

Modified: branches/Version14x/Scribus/scribus/canvasmode_normal.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17360&path=/branches/Version14x/Scribus/scribus/canvasmode_normal.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/canvasmode_normal.cpp (original)
+++ branches/Version14x/Scribus/scribus/canvasmode_normal.cpp Tue Mar  6 21:53:02 2012
@@ -1198,23 +1198,21 @@
 			}
 			else if (currItem->Groups.count() > 0)
 			{
-				for (int ga=0; ga<m_doc->Items->count(); ++ga)
+				for (int ga=0; ga < m_doc->Items->count(); ++ga)
 				{
 					PageItem* item = m_doc->Items->at(ga);
-					if (item->Groups.count() != 0)
+					if (item->Groups.count() == 0)
+						continue;
+					if (item->Groups.top() != currItem->Groups.top())
+						continue;
+					if (item->ItemNr != currItem->ItemNr)
 					{
-						if (item->Groups.top() == currItem->Groups.top())
+						if (m_doc->m_Selection->findItem(item) == -1)
 						{
-							if (item->ItemNr != currItem->ItemNr)
-							{
-								if (m_doc->m_Selection->findItem(item) == -1)
-								{
-									m_doc->m_Selection->addItem(item, true);
-								}
-							}
-							item->isSingleSel = false;
+							m_doc->m_Selection->addItem(item, true);
 						}
 					}
+					item->isSingleSel = false;
 				}
 			}
 		}




More information about the scribus-commit mailing list