[Bug 302907] New: rsvg program doesn't handle -h 0 or -w 0 well

bugzilla-daemon@bugzilla.gnome.org bugzilla-daemon@bugzilla.gnome.org
Tue, 3 May 2005 16:11:04 -0400 (EDT)


Please DO NOT reply to this by email. All additional comments should be m=
ade in
the comments box of this bug report.

 http://bugzilla.gnome.org/show_bug.cgi?id=3D302907
 librsvg | general | Ver: 2.9.x

           Summary: rsvg program doesn't handle -h 0 or -w 0 well
           Product: librsvg
           Version: 2.9.x
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: general
        AssignedTo: librsvg-maint@gnome.bugs
        ReportedBy: joss@debian.org
                CC: pkg-gnome-maintainers@lists.alioth.debian.org,all-
                    bugs@bugzilla.gnome.org


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=20
warning and a random bogus output PNG.  It should give a useful error=20
message and (I think) no output PNG.

(process:26064): librsvg-WARNING **: rsvg_start_svg: width and height=20
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 <=3D0 instead of testing=
 for =3D=3D
-1, but I don't know if that's the best solution.

------- You are receiving this mail because: -------
You are on the CC list for the bug.