Skip to content
Permalink
Browse files
fix deprecation warnings (followup 5f86422)
  • Loading branch information
jef-n committed Dec 6, 2015
1 parent d362be5 commit 57fd76c6fe51af30be13124e1fbd48e8e99a4ff5
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/core/symbology-ng/qgsrulebasedrendererv2.cpp
  2. +1 −1 src/gui/symbology-ng/qgsrulebasedrendererv2widget.cpp
@@ -980,7 +980,7 @@ bool QgsRuleBasedRendererV2::legendSymbolItemsCheckable() const
bool QgsRuleBasedRendererV2::legendSymbolItemChecked( const QString& key )
{
Rule* rule = mRootRule->findRuleByKey( key );
return rule ? rule->checkState() : true;
return rule ? rule->active() : true;
}

void QgsRuleBasedRendererV2::checkLegendSymbolItem( const QString& key, bool state )
@@ -861,7 +861,7 @@ QVariant QgsRuleBasedRendererV2Model::data( const QModelIndex &index, int role )
{
if ( index.column() != 0 )
return QVariant();
return rule->checkState() ? Qt::Checked : Qt::Unchecked;
return rule->active() ? Qt::Checked : Qt::Unchecked;
}
else
return QVariant();

0 comments on commit 57fd76c

Please sign in to comment.