Skip to content
Permalink
Browse files

Maintain range label in rule based legend

fix #28011
  • Loading branch information
roya0045 committed Oct 16, 2020
1 parent cb37b18 commit 842e765c49c4da9e0e28a0e3d596e7807c48bfad
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology/qgsrulebasedrenderer.cpp
@@ -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 ) );
}
}

0 comments on commit 842e765

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