Bug report #9823

Data defined expressions with single number get lost

Added by Nyall Dawson over 10 years ago. Updated over 10 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Expressions
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:duplicate
Crashes QGIS or corrupts data:No Copied to github as #:18354

Description

If I go into data defined properties for a symbol, and create an expression which contains only a single numeric value, eg "10", then this expression is immediately lost after clicking the OK button. A workaround is entering an expression such as "10+0", which is accepted by QGIS and retained.

I realise it's probably not that common to have a single constant value as an expression, but it should still be possible to do this.

History

#1 Updated by Giovanni Manghi over 10 years ago

  • Resolution set to duplicate
  • Target version set to Version 2.4
  • Status changed from Open to Closed

Still true on the latest master, while another issue (the one that stripped "(" from the data defined expressions) seems solved.

Moreover the workaround 10+0 does not works on master.

Merging with #9783

Also available in: Atom PDF