Skip to content
Permalink
Browse files

Fix identify tool with rule renderer and nested else

  • Loading branch information
m-kuhn committed Apr 17, 2018
1 parent d7fd14b commit a84cdd45fb383f92782c435300742265af755e0a
Showing with 12 additions and 5 deletions.
  1. +12 −5 src/core/symbology/qgsrulebasedrenderer.cpp
@@ -549,15 +549,22 @@ bool QgsRuleBasedRenderer::Rule::willRenderFeature( QgsFeature &feat, QgsRenderC
{
if ( rule->isElse() )
{
RuleList lst = rulesForFeature( feat, context, false );
lst.removeOne( rule );
if ( rule->children().isEmpty() )
{
RuleList lst = rulesForFeature( feat, context, false );
lst.removeOne( rule );

if ( lst.empty() )
if ( lst.empty() )
{
return true;
}
}
else
{
return true;
return rule->willRenderFeature( feat, context );
}
}
else if ( !rule->isElse( ) && rule->willRenderFeature( feat, context ) )
else if ( rule->willRenderFeature( feat, context ) )
{
return true;
}

0 comments on commit a84cdd4

Please sign in to comment.
You can’t perform that action at this time.