Bug report #3727
Features not represented with rule-based renderer still get labelled
|Affected QGIS version:
|Pull Request or Patch supplied:
|Crashes QGIS or corrupts data:
|Copied to github as #:
With the rule-based renderer, it is possible to have sets of rules that do not represent some features: if some feature are not matched by any rule (due to a filter or a scale criterion), they are not represented (which is normal), but their labels are still displayed, which is a bug. This affects the old labelling engine and Label-NG, in the map canvas and the map composer.
The behavior should be the same as with the categorized renderer: if you delete one of the categories, the corresponding features are no longer represented AND the corresponding labels disappear.