Bug report #13352
Symbology - Size assistant bug
|Affected QGIS version:||2.10.1||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||21405|
The excellent Size assistant dialogue for setting data-driven symbology properties generates an expression where the field name is not set into quotation marks. This causes the expression to not work. manually editing the expression, or adding quotation marks to the name of the field in the assistant is a workaround.
#4 Updated by Vincent Mora about 7 years ago
- Assignee changed from Vincent Mora to Denis Rouzaud
If the bug is with spaces, then the problem comes from QgsFieldModel and is propagated to QgsFieldExpressionWidget, it is also there when using e.g. the expression widget in classified symbology.
I wonder if QgsVectorLayers::fields() should add the quotes or if it should be done later (e.g. in QgsFieldModel or in QgsFieldExpressionWidget).
Denis: what do you think ?