r17321 by jghali - #10592 related : locking/unlocking layer from layer palette header does not work correctly

scribus-commit scribus-commit at lists.scribus.net
Tue Feb 21 23:17:52 UTC 2012


Author: jghali
Date: Tue Feb 21 23:17:52 2012
New Revision: 17321

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17321
Log:
#10592 related : locking/unlocking layer from layer palette header does not work correctly

Modified:
    trunk/Scribus/scribus/ui/layers.cpp

Modified: trunk/Scribus/scribus/ui/layers.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17321&path=/trunk/Scribus/scribus/ui/layers.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/layers.cpp (original)
+++ trunk/Scribus/scribus/ui/layers.cpp Tue Feb 21 23:17:52 2012
@@ -432,31 +432,31 @@
 		int layerCount = m_Doc->layerCount();
 		for (it = layers->begin(); it != layers->end(); ++it)
 		{
-			int row = layerCount - m_Doc->layerLevelFromID((*it).ID) - 1;
+			int row = layerCount - m_Doc->layerLevelFromID(it->ID) - 1;
 			if (index == 1)
 			{
 				((QCheckBox*)(Table->cellWidget(row, 1)))->toggle();
-				(*it).isViewable = ((QCheckBox*)(Table->cellWidget(row, 1)))->isChecked();
+				it->isViewable = ((QCheckBox*)(Table->cellWidget(row, 1)))->isChecked();
 			}
 			if (index == 2)
 			{
 				((QCheckBox*)(Table->cellWidget(row, 2)))->toggle();
-				(*it).isPrintable = ((QCheckBox*)(Table->cellWidget(row, 2)))->isChecked();
+				it->isPrintable = ((QCheckBox*)(Table->cellWidget(row, 2)))->isChecked();
 			}
 			if (index == 3)
 			{
 				((QCheckBox*)(Table->cellWidget(row, 3)))->toggle();
-				(*it).isEditable = ((QCheckBox*)(Table->cellWidget(row, 3)))->isChecked();
+				it->isEditable = !((QCheckBox*)(Table->cellWidget(row, 3)))->isChecked();
 			}
 			if (index == 4)
 			{
 				((QCheckBox*)(Table->cellWidget(row, 4)))->toggle();
-				(*it).flowControl = ((QCheckBox*)(Table->cellWidget(row, 4)))->isChecked();
+				it->flowControl = ((QCheckBox*)(Table->cellWidget(row, 4)))->isChecked();
 			}
 			else if (index == 5)
 			{
 				((QCheckBox*)(Table->cellWidget(row, 5)))->toggle();
-				(*it).outlineMode = ((QCheckBox*)(Table->cellWidget(row, 5)))->isChecked();
+				it->outlineMode = ((QCheckBox*)(Table->cellWidget(row, 5)))->isChecked();
 			}
 		}
 		emit LayerChanged();




More information about the scribus-commit mailing list