Fix Bug 436569: Get xlink:href prefix right in case of duplicate gradient

This commit is contained in:
JSCHILL1 2009-09-27 19:53:34 -05:00
parent 7e483ce92f
commit 20fe836041
3 changed files with 39 additions and 5 deletions

View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="256pt" height="3170.0000pt">
<defs>
<linearGradient id="linearGradient841">
<stop id="stop842" offset="0.00000000" style="stop-color:#0082ab;stop-opacity:1;"/>
<stop id="stop843" offset="1" style="stop-color:white;stop-opacity:0;"/>
</linearGradient>
<linearGradient y2="0.91666669" x2="0.51618570" y1="0.16666391" x1="0.51618570" id="linearGradient1657" xlink:href="#linearGradient841"/>
</defs>
<defs>
<linearGradient id="linearGradient841">
<stop style="stop-color:#0082ab;stop-opacity:1;" offset="0.00000000" id="stop842"/>
<stop style="stop-color:white;stop-opacity:0;" offset="1" id="stop843"/>
</linearGradient>
<linearGradient xlink:href="#linearGradient841" id="linearGradient2465" x1="76.846634" y1="-7656.4473" x2="76.846633" y2="-7528.6605" gradientTransform="matrix(2.149642,0.000000,0.000000,0.465194,-0.130153,3495.428)" gradientUnits="userSpaceOnUse"/>
</defs>
<rect height="50" width="50" fill="url(#linearGradient841)"/>
<rect height="69.247704" width="319.89233" fill="url(#linearGradient1657)"/>
<rect fill="url(#linearGradient2465)" width="319.99103" height="69.247704"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB