Skip to content
Permalink
Browse files

Fix GetLegendGraphic with scale on non scale limited rule

  • Loading branch information
Stéphane Brunner
Stéphane Brunner committed Oct 19, 2013
1 parent 7fdedf1 commit 4072906064b6657131d9a7019fa8069e2d7ce884
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/core/symbology-ng/qgsrulebasedrendererv2.cpp
@@ -184,10 +184,7 @@ QgsLegendSymbolList QgsRuleBasedRendererV2::Rule::legendSymbolItems( double scal
for ( RuleList::iterator it = mChildren.begin(); it != mChildren.end(); ++it )
{
Rule* rule = *it;
if ( scaleDenominator == -1 || (
( rule->mScaleMinDenom == -1 || rule->mScaleMinDenom < scaleDenominator ) &&
( rule->mScaleMaxDenom == -1 || scaleDenominator < rule->mScaleMaxDenom ) ) )
{
if ( scaleDenominator == -1 || rule->isScaleOK(scaleDenominator) ) {
lst << rule->legendSymbolItems( scaleDenominator, ruleFilter );
}
}

0 comments on commit 4072906

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