Akash049 / android-ui-utils

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

In android-pencil-stencil-basic, rendering options-menu and tab-widget causes invalid SVG to be generated #106

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

- Create a new Document
- Create any layout containing an instance of tab-widget and/or options-menu.
- Pencil -> Document -> Export Page as PNG

What is the expected output? What do you see instead?
The expected output would be a PNG bearing tight resemblance to the page you 
designed in Pencil. 
Any attempts to export work will not produce correct results. In Firefox, for 
example, the PNG contains an error message stating: XML Parse Error.  It looks 
like the code generating the SVG (which then gets rasterized to PNG) is not 
generating valid markup.

Please provide any additional information below.
Tested on
 - Ubuntu 11.04, Firefox 9.01, Pencil 1.3.2, android-pencil-stancil-basic 0.2
 - Win 7, Firefox 9.01, Pencil 1.3.2, android-pencil-stancil-basic 0.2

Original issue reported on code.google.com by wilson...@gmail.com on 18 Jan 2012 at 4:32

GoogleCodeExporter commented 8 years ago

Original comment by romannu...@google.com on 18 Jan 2012 at 4:33

GoogleCodeExporter commented 8 years ago
Attached is a bad SVG file recovered from a temporary file. 

Notice on Line 7:665 and Line 7:945 there is an XML tag of type "undefined". 
Being that this code was generated with JavaScript, it looks like the tag type 
isn't being specified where it need be, leaving some variable unbound (and thus 
undefined).

Original comment by wilson...@gmail.com on 18 Jan 2012 at 4:36

Attachments: