Bug report #8927
Expression labeling not working
|Affected QGIS version:||2.0.1||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||17599|
How to reproduce:
As reported by @macho: Open a spatialite layer and label the features with a field other than the id. The field text is not printed.
The problem is, that at qgsvectorlayer.cpp:701 a subset of attributes to be fetched from the provider is specified. This is queried from the renderer, but it seems, that the renderers (at least some of them) only report the attributes used for their symbol rendering + rotation + scaling, but not the attributes used in the labeling expression.
@dakcarto: I assigned this to you because I think you are the labeling guy. Please reassign if you feel somebody else fits better ;)