Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed symbol levels dialog
  • Loading branch information
wonder-sk committed Jan 24, 2012
1 parent a7cf5e4 commit 138d4a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/gui/symbology-ng/qgssymbollevelsv2dialog.cpp
Expand Up @@ -127,9 +127,9 @@ void QgsSymbolLevelsV2Dialog::updateUi()

void QgsSymbolLevelsV2Dialog::setDefaultLevels()
{
for ( int i = 0; i < mSymbols.count(); i++ )
for ( int i = 0; i < mList.count(); i++ )
{
QgsSymbolV2* sym = mSymbols[i];
QgsSymbolV2* sym = mList[i].second;
for ( int layer = 0; layer < sym->symbolLayerCount(); layer++ )
{
sym->symbolLayer( layer )->setRenderingPass( layer );
Expand All @@ -145,9 +145,9 @@ bool QgsSymbolLevelsV2Dialog::usingLevels() const

void QgsSymbolLevelsV2Dialog::renderingPassChanged( int row, int column )
{
if ( row < 0 || row >= mSymbols.count() )
if ( row < 0 || row >= mList.count() )
return;
QgsSymbolV2* sym = mSymbols[row];
QgsSymbolV2* sym = mList[row].second;
if ( column < 0 || column >= sym->symbolLayerCount() )
return;
sym->symbolLayer( column )->setRenderingPass( tableLevels->item( row, column )->text().toInt() );
Expand Down
2 changes: 0 additions & 2 deletions src/gui/symbology-ng/qgssymbollevelsv2dialog.h
Expand Up @@ -13,7 +13,6 @@ class GUI_EXPORT QgsSymbolLevelsV2Dialog : public QDialog, private Ui::QgsSymbol
{
Q_OBJECT
public:
QgsSymbolLevelsV2Dialog( QgsSymbolV2List symbols, bool usingSymbolLevels, QWidget* parent = NULL );
QgsSymbolLevelsV2Dialog( QgsLegendSymbolList list, bool usingSymbolLevels, QWidget* parent = NULL );

bool usingLevels() const;
Expand All @@ -33,7 +32,6 @@ class GUI_EXPORT QgsSymbolLevelsV2Dialog : public QDialog, private Ui::QgsSymbol
protected:
//! maximal number of layers from all symbols
int mMaxLayers;
QgsSymbolV2List mSymbols;
QgsLegendSymbolList mList;
//! whether symbol layers always should be used (default false)
bool mForceOrderingEnabled;
Expand Down

0 comments on commit 138d4a2

Please sign in to comment.