Bug report #14997

SVG arrows in composer not displayed when containing custom parameter

Added by Regis Haubourg almost 8 years ago. Updated almost 8 years ago.

Status:Closed
Priority:High
Assignee:-
Category:Map Composer/Printing
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 #:22944

Description

Hi,
when trying to draw an arrow in composer, ending with a svg symbol, if I use a native QGIS SVG that contains the parameters used to change color and size such as

 fill="param(fill)" fill-opacity="param(fill-opacity)
stroke="param(outline)" stroke-opacity="param(outline-opacity)" 

then symbols are not drawn. Removing those parameters SVG in a text editor works.

Associated revisions

Revision 78c434a6
Added by Nyall Dawson almost 8 years ago

[composer] Make parameterised SVG arrow heads respect colors (fix #14997)

Revision dc961d53
Added by Nyall Dawson almost 8 years ago

[composer] Make parameterised SVG arrow heads respect colors (fix #14997)

(cherry-picked from 78c434a6c4fbdb6004c725abe0121dc4dd6dd8dc)

History

#1 Updated by Alain FERRATON almost 8 years ago

it seems that only the parameter
fill-opacity = " param ( fill-opacity ) "
does not allow the Symbol Display

However, even with
fill="param(fill) #FFF"
we can not change the color

#2 Updated by Hugo Mercier almost 8 years ago

I am not sure to understand how to reproduce the issue.
Could you share a project ?

#3 Updated by Nyall Dawson almost 8 years ago

  • Status changed from Open to Closed

#4 Updated by Regis Haubourg almost 8 years ago

Nyall Dawson wrote:

Fixed in changeset 78c434a6c4fbdb6004c725abe0121dc4dd6dd8dc.

Woh thanks! Do you thinks a backport is possible for 2.14 (next LTR) ?
Cheers
Régis

#5 Updated by Nyall Dawson almost 8 years ago

Yes, will do

Also available in: Atom PDF