r15285 by jghali - small adjustments in copyPage()

scribus-commit scribus-commit at lists.scribus.net
Sun Jun 27 18:10:45 CEST 2010


Revision: 15285
Author: jghali
Date: 2010-06-27T16:08:30.026583Z
Commit message: small adjustments in copyPage()

Changeset: 
M  /trunk/Scribus/scribus/scribusdoc.cpp

Diffs:
Index: scribus/scribusdoc.cpp
===================================================================
--- scribus/scribusdoc.cpp	(revision 15284)
+++ scribus/scribusdoc.cpp	(revision 15285)
@@ -5561,11 +5561,11 @@
 			int currActiveLayer = activeLayer();
 			for (it = Layers.begin(); it != Layers.end(); ++it)
 			{
-				setActiveLayer((*it).ID);
+				setActiveLayer(it->ID);
 				for (uint ite = 0; ite < oldItems; ++ite)
 				{
 					PageItem *itemToCopy = Items->at(ite);
-					if ((itemToCopy->OwnPage == static_cast<int>(from->pageNr())) && ((*it).ID == itemToCopy->LayerID))
+					if ((itemToCopy->OwnPage == static_cast<int>(from->pageNr())) && (it->ID == itemToCopy->LayerID))
 						m_Selection->addItem(itemToCopy, true);
 				}
 				if (m_Selection->count() != 0)




More information about the scribus-commit mailing list