GNOME Bugzilla – Bug 302907
rsvg program doesn't handle -h 0 or -w 0 well
Last modified: 2005-07-01 02:19:24 UTC
Version details: 2.8.1 Distribution/Version: Debian sid [ forwarded from http://bugs.debian.org/278750 ] If I call "rsvg -w 30 -h 0 foo.svg foo.png", rsvg gives a cryptic warning and a random bogus output PNG. It should give a useful error message and (I think) no output PNG. (process:26064): librsvg-WARNING **: rsvg_start_svg: width and height not specified in the SVG, nor supplied by the size callback The same is true if a negative value is given. An easy fix would be to test for width or height <=0 instead of testing for == -1, but I don't know if that's the best solution.
HEAD doesn't emit bogus output. that's good enough. GIGO. thanks.