Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Maintain range label in rule based legend
fix #28011
  • Loading branch information
roya0045 committed Oct 16, 2020
1 parent cb37b18 commit 842e765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology/qgsrulebasedrenderer.cpp
Expand Up @@ -1241,7 +1241,7 @@ void QgsRuleBasedRenderer::refineRuleRanges( QgsRuleBasedRenderer::Rule *initial
QString::number( rng.lowerValue(), 'f', 4 ),
QString::number( rng.upperValue(), 'f', 4 ) );
firstRange = false;
QString label = filter;
QString label = rng.label().isEmpty() ? filter : rng.label();
initialRule->appendChild( new Rule( rng.symbol()->clone(), 0, 0, filter, label ) );
}
}
Expand Down

0 comments on commit 842e765

Please sign in to comment.