Bug report #7684
Labeling not working with field containing non-alphabetic characters
|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 #:||16601|
If a field name contains a space or another non-alphabetic character, it is impossible to choose this field for labeling. However, when choosing it from the expression builder, it works, because it is enclosed in quotes.
I proposed a small patch to enclose the field names in quote when they contain any character other than [a-zA-Z] : https://github.com/qgis/Quantum-GIS/pull/552
#2 Updated by Leyan Ouyang over 7 years ago
- Status changed from Open to Closed
Hum, that's weird, I don't know what I did, today I can't reproduce the problem when simply selecting a field. However there is still a problem when first selecting a field then choosing to build an expression, the field is not given quotes.
Anyway, this is pretty minor and not exactly the same thing. I will just make a small patch for that.