r17320 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:16:52 UTC 2012
Author: jghali
Date: Tue Feb 21 23:16:52 2012
New Revision: 17320
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17320
Log:
#10592 related : locking/unlocking layer from layer palette header does not work correctly
Modified:
branches/Version14x/Scribus/scribus/layers.cpp
Modified: branches/Version14x/Scribus/scribus/layers.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17320&path=/branches/Version14x/Scribus/scribus/layers.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/layers.cpp (original)
+++ branches/Version14x/Scribus/scribus/layers.cpp Tue Feb 21 23:16:52 2012
@@ -427,31 +427,31 @@
int layerCount = m_Doc->layerCount();
for (it = layers->begin(); it != layers->end(); ++it)
{
- int row = layerCount - m_Doc->layerLevelFromNumber((*it).LNr) - 1;
+ int row = layerCount - m_Doc->layerLevelFromNumber(it->LNr) - 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