Bug report #3727
Features not represented with rule-based renderer still get labelled
|Affected QGIS version:||1.7.4||Regression?:||No|
|Operating System:||All||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||13786|
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.