PankajSavaliya / svg-android

Automatically exported from code.google.com/p/svg-android
0 stars 0 forks source link

linearGradient xlink:href fails if referenced element is defined later in svg file. #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make a complex scene with inscape
2. Try to parse this block: (take a look at "LinearGradID_2-5" )
<linearGradient
     id="LinearGradID_22"
     gradientUnits="userSpaceOnUse"
     gradientTransform="matrix(-0.0549316,0,0,0.0012207,115.05,268.2)"
     spreadMethod="pad"
     x1="-819.20001"
     y1="0"
     x2="819.20001"
     y2="0"><stop
       offset="0"
       style="stop-color:#FFFFFF;stop-opacity:1"
       id="stop143" /><stop
       offset="1"
       style="stop-color:#FFFFFF;stop-opacity:0.196078"
       id="stop145" /></linearGradient><linearGradient
     inkscape:collect="always"
     xlink:href="#LinearGradID_2-5"
     id="linearGradient4177-7"
     gradientUnits="userSpaceOnUse"
     gradientTransform="matrix(-0.0989075,0.153412,-0.0591583,-0.038147,0,-23.5)"
     spreadMethod="pad"
     x1="-819.20001"
     y1="0"
     x2="819.20001"
     y2="0" /><linearGradient
     y2="0"
     x2="819.20001"
     y1="0"
     x1="-819.20001"
     spreadMethod="pad"
     gradientTransform="matrix(-0.0989075,0.153412,-0.0591583,-0.038147,0,-23.5)"
     gradientUnits="userSpaceOnUse"
     id="LinearGradID_2-5"><stop
       id="stop3441-6"
       style="stop-color:#CCCCFF;stop-opacity:1"
       offset="0" /><stop
       id="stop3443-8"
       style="stop-color:#333333;stop-opacity:1"
       offset="1" /></linearGradient><linearGradient
     inkscape:collect="always"
     xlink:href="#LinearGradID_3-0"
     id="linearGradient4179-6"
     gradientUnits="userSpaceOnUse"
     gradientTransform="matrix(-0.10505333,0.18195816,-0.07017003,-0.04051307,238.06352,220.86367)"
     spreadMethod="pad"
     x1="-819.20001"
     y1="0"
     x2="819.20001"
     y2="0" />

What is the expected output? What do you see instead?
child element should be moved to a wait list if parent was not defined. 

What version of the product are you using? On what operating system?
1.1
operating system: windows 7

Original issue reported on code.google.com by AleksasP...@gmail.com on 5 Apr 2012 at 1:20