roelj / inklingreader

A GNU/Linux-friendly version of the Wacom Inkling SketchManager.
GNU General Public License v3.0
50 stars 16 forks source link

Display of drawing broken (possible svg malformed) #16

Closed xuv closed 10 years ago

xuv commented 10 years ago

When opening a .WPI file in the GUI, this is the error I get:

(inklingreader:16909): librsvg-CRITICAL **: rsvg_handle_render_cairo_sub: assertion `handle != NULL' failed

Although, when I transform the same WPI file through command-line, I get an svg file without error. But I can't open that file in Inkscape or Viewnior.

The difference between the two svg files are on line 6 & 7. Here an example:

Now (broken):

<title>test.svg</title>
<g inkscape:label="Background" inkscape:groupmode="layer" id="layer0"><rect style="fill:#ffffff;stroke:none" id="background" width="210mm" height="297mm" x="0" y="0" /></g>

Before:

<g inkscape:label="Background" inkscape:groupmode="layer" id="layer0"><rect style="fill:#ffffff;stroke:none" id="background" width="210mm" height="297mm" x="0" y="0" /></g>
<g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1">

Don't know why the name of the svg filename ended up in between a tag.

roelj commented 10 years ago

This was a dumb mistake of mine. Could you confirm it works again with the latest build?

xuv commented 10 years ago

Yep. Solved.