Skip to content

Commit

Permalink
Fix GetLegendGraphic with scale on non scale limited rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Brunner committed Oct 19, 2013
1 parent 7fdedf1 commit 4072906
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/symbology-ng/qgsrulebasedrendererv2.cpp
Expand Up @@ -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 );
}
}
Expand Down

0 comments on commit 4072906

Please sign in to comment.