omeshwar / svg-android-2

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

Underflow exception when <text> elements are used in invisible <g> elements #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Display an SVG document with at least one "display='none'" element that 
contains a <text> element

What is the expected output? What do you see instead?
Nothing is supposed to happen, but instead, the app crashes with an underflow 
exception.

What version of the product are you using? On what operating system?
-

Please provide any additional information below.
This can be fixed by checking the "hidden" flag in the piece of code popping 
the <text> transform from the transform stack in the "endElement" method. 
Currently, the transform is not pushed in "startElement" but later popped in 
"endElement".

Generally, I think it would be best (at least better) if elements whose 
"display" attribute is "none" were skipped altogether.

Original issue reported on code.google.com by reimar.t...@googlemail.com on 8 Feb 2012 at 8:41

GoogleCodeExporter commented 8 years ago
fixed

Original comment by suh...@google.com on 30 Sep 2013 at 3:55

GoogleCodeExporter commented 8 years ago

Original comment by suh...@google.com on 7 Nov 2013 at 3:52