Bug report #12888

Symbol with data-defined size that evaluate to NULL are drawn

Added by Vincent Mora almost 9 years ago. Updated almost 9 years ago.

Status:Closed
Priority:Normal
Assignee:Vincent Mora
Category:-
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 #:20978

Description

To allow the preview and the drawing of the symbol with data-defined properties, the property is given a default value when the expression is NULL.

As a result, for DD size expression, symbols are drawn with the default size when the field is NULL. This gives different results than 2.8.

Associated revisions

Revision 4fb22b4e
Added by Vincent Mora almost 9 years ago

converted size expr evaluate to 0 on NULL field
fix #12888
use coalesce(expr,0) to have zero size if expression evaluates to NULL
otherwise the default size would be used

History

#1 Updated by Jürgen Fischer almost 9 years ago

see also discussion in PR #2111

#2 Updated by Vincent Mora almost 9 years ago

  • Pull Request or Patch supplied changed from No to Yes
  • Status changed from Open to In Progress

#3 Updated by Vincent Mora almost 9 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF