You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If svg files with params do not have a default value set, then don't
reset the fill/border color and border width when changing svg
marker/svg fill SVG files
This change makes the behaviour consistent between the svg marker
symbol and the other marker symbols. Additionally, svg files
which have customisable colors and NO default values set will
be shaded in gray fill/black outline in the svg selector widget,
to follow the same behaviour as the other marker symbol selectors.
Note that this change has NO EFFECT unless the svg files are
modified to remove the default param value, so there will be no
change for users' custom symbols. A follow up commit will need
to remove the default param values from the preinstalled SVG
files though. If you want to test in the meantime, I've modified
just the first two symbols in the accomodation group to make
this change for testing.
(refs #10908)
/** Tests if an svg file contains parameters for fill, outline color, outline width. If yes, possible default values are returned. If there are several
92
+
* default values in the svg file, only the first one is considered.
93
+
* @param path path to SVG file
94
+
* @param hasFillParam will be true if fill param present in SVG
95
+
* @param hasDefaultFillParam will be true if fill param has a default value specified
96
+
* @param defaultFillColor will be set to default fill color specified in SVG, if present
97
+
* @param hasOutlineParam will be true if outline param present in SVG
98
+
* @param hasDefaultOutlineColor will be true if outline param has a default value specified
99
+
* @param defaultOutlineColor will be set to default outline color specified in SVG, if present
100
+
* @param hasOutlineWidthParam will be true if outline width param present in SVG
101
+
* @param hasDefaultOutlineWidth will be true if outline width param has a default value specified
102
+
* @param defaultOutlineWidth will be set to default outline width specified in SVG, if present
103
+
* @note available in python bindings as containsParamsV2
0 commit comments