Bug report #11366
Graduated rendering : a custom legend label is not displayed in TOC nor print composer
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||Yes||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||19657|
Add a layer and open its properties dialog
In Style tab, define a graduated rendering on a field. Classify.
In "Legend format", let's use "From %1 to %2". Apply. The labels are well shown in the TOC and then in the legend in print composer.
But suppose anyone wants to customize first and last range (eg. "Inferior to ..." and "Superior to ..."). It's possible to modify the labels but when applying, the text in the TOC won't change. Neither in the print composer.
If you erase the content of the template "Legend format" and customize your labels, they will neither be shown in the TOC.
I think using "Legend format" might work as a template for first creation of the labels and then the user should be able to freely change some labels.
May be a checkbox for the use of template that will also activate/deactivate other options such as precision and trim (to keep coherence).
#1 Updated by Chris Crook about 5 years ago
- Priority changed from High to Severe/Regression
- Assignee set to Chris Crook
- Category set to Symbology
Absolutely this is how it should behave.
I'm guessing that this is an issue introduced into the copying of a renderer. If so then it is likely that custom labels will be lost elsewhere. Will investigate and fix shortly.