Bug report #19043
Data defined override for line width doesn't work properly when taking into account joined layer field
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Expressions | ||
Affected QGIS version: | 3.1(master) | Regression?: | No |
Operating System: | Debian Buster | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 26873 |
Description
I noticed that when activating the Data defined override option for line stroke and a joined layer is involved, the output isn't what it should.
For the following expression:
CASE WHEN "pipe_material_diameter" IS NOT NULL THEN "pipe_material_diameter" / 900 + .2 ELSE .2 END
I would have expected that when the "pipe_material_diameter" IS NULL the width would be 0.2 as it should fall into the ELSE option, right?.
Instead, the width is taken from the default width option (3 if you look at the attached image).
Of course, I could have made the 0.2 as default width but it looks too small in the legend (as the legend presents the default width)
I've attached a test project.
History
#1 Updated by Tudor Bărăscu over 6 years ago
- File problemo.png added
This is the buggy output, that fat pipe should have been 0.2 thin, not 3 mm.