Skip to content

Commit e890141

Browse files
author
Gabriel Inzirillo
authored
Update AJUI_Btn_drawSVG.4dm
Add some replacing color in case only the stroke have a color and not the fill
1 parent af21700 commit e890141

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Project/Sources/Methods/AJUI_Btn_drawSVG.4dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ If ($btn_composition#"text")
117117
$svg_txt:=Replace string:C233($svg_txt;"fill:"+$colorToReplace;"fill:"+$replacingColor)
118118
$svg_txt:=Replace string:C233($svg_txt;"fill: "+$colorToReplace;"fill: "+$replacingColor)
119119
$svg_txt:=Replace string:C233($svg_txt;"stroke=\""+$colorToReplace;"stroke=\""+$replacingColor)
120+
$svg_txt:=Replace string:C233($svg_txt;"stroke:"+$colorToReplace;"stroke:"+$replacingColor)
121+
$svg_txt:=Replace string:C233($svg_txt;"stroke: "+$colorToReplace;"stroke: "+$replacingColor)
120122
End if
121123

122124
$dom_ref:=DOM Parse XML variable:C720($svg_txt)

0 commit comments

Comments
 (0)