Bug report #10521

order of reading svg paths

Added by matteo ghetta almost 10 years ago. Updated about 6 years ago.

Status:Closed
Priority:Low
Assignee:-
Category:Symbology
Affected QGIS version:master 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 #:18931

Description

When adding external SVG symbols in "SVG paths" in general options, if different paths have different SVG files/symbols that have the same file name then the SVG in the first listed path is always used.

History

#1 Updated by Giovanni Manghi almost 10 years ago

  • Affected QGIS version changed from 2.2.0 to master

#2 Updated by aperi2007 - almost 10 years ago

Hi,
I add also that always the default path of svg of qgis is used firstly.

This is a no good choose because
If I add another path to reach my svg if they has the same name of an svg in default path.
My svg file never will be used.

I figure qgis now is using this approach:

n. 1) /--default-path svg of qgis/
n. 2) first path added from an user
n. 3) second path added from an user.

QGIS start searching on N.1 .If not found go to N. 2 , if not found go to N. 3.

Instead more affordable is to use a list inverse.
So

Start to test non n. 3) if not found pass to test on N. 2 if not found pass to test on N.1 (the default-path)

This is more feasible and more easy to manage for an user.

Regards,

Andrea.

#3 Updated by Giovanni Manghi almost 7 years ago

  • Easy fix? set to No
  • Regression? set to No

#4 Updated by matteo ghetta about 6 years ago

  • Status changed from Open to Closed

#5 Updated by Giovanni Manghi about 6 years ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF