r15284 by jghali - small adjustments in copyPage()

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


Revision: 15284
Author: jghali
Date: 2010-06-27T16:07:51.191907Z
Commit message: small adjustments in copyPage()

Changeset: 
M  /branches/Version135/Scribus/scribus/scribusdoc.cpp

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




More information about the scribus-commit mailing list