Bug report #13352

Symbology - Size assistant bug

Added by dietmar offenhuber over 8 years ago. Updated about 8 years ago.

Status:Closed
Priority:Normal
Assignee:Denis Rouzaud
Category:Symbology
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

Description

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.

History

#1 Updated by Regis Haubourg over 8 years ago

  • Assignee set to Vincent Mora

Hi Vincent, could you check that issue?
Régis

#2 Updated by Saber Razmjooei over 8 years ago

  • Category set to Symbology

#3 Updated by Vincent Mora over 8 years ago

Hi Saber, thank for the report and sorry for the delay,

When do you witness the bug ? When the field name contains spaces ?

#4 Updated by Vincent Mora over 8 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 ?

#5 Updated by Nyall Dawson about 8 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

This was fixed in 2.14

Also available in: Atom PDF