Bug report #9937

Symbol outline width incorrect when set to 0

Added by Anita Graser about 10 years ago. Updated about 8 years ago.

Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:18441


The standard point symbols have a black outline. The dialog displays an outline width of 0 but clearly and outline is still displayed. Changing the outline size to 0.01 results in a much thinner line than when set to 0. The width of the outline when set to 0 resembles the result of choosing 0.2. To completely remove the outline, the user has to select "no pen". I think setting to 0 should have the same effect as "no pen".

Associated revisions

Revision 25ad0af8
Added by Nyall Dawson about 8 years ago

[symbology] Add explanatory text for 0 line widths (fix #9937)


#1 Updated by Nyall Dawson about 10 years ago

Actually what is happening is that setting a zero-width outline is equivalent to a "hairline" width in most drawing programs. It means the outline is always drawn so that it's 1 pixel wide, regardless of any zoom/resolution settings.

This is a pretty important feature to have, and I'd hate to see it dropped. It should be exposed to the user in a better way though. Any ideas?

#2 Updated by Anita Graser about 10 years ago

I see. Then we should set a reasonable value for "hairline". Currently it's much too wide.

#3 Updated by R. R. about 8 years ago

As for simple lines and borders (simple fill), the default width should be 0,26mm.

#4 Updated by Nyall Dawson about 8 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF