Skip to content

Commit

Permalink
fix deprecation warnings (followup 5f86422)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Dec 6, 2015
1 parent d362be5 commit 57fd76c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/symbology-ng/qgsrulebasedrendererv2.cpp
Expand Up @@ -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 )
Expand Down
2 changes: 1 addition & 1 deletion src/gui/symbology-ng/qgsrulebasedrendererv2widget.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 57fd76c

Please sign in to comment.