summaryrefslogtreecommitdiff
path: root/librsvg/rsvg.c
diff options
context:
space:
mode:
authorRaph Levien <raph@src.gnome.org>2000-09-07 07:12:02 +0000
committerRaph Levien <raph@src.gnome.org>2000-09-07 07:12:02 +0000
commit85fa78dae25f4a96701ba5d597e3b8983fb3198b (patch)
tree3efda404ec05250f0a855d864de5c321630a0565 /librsvg/rsvg.c
parent3db3030fa90857433df871ae4a1efa4ff796b3fc (diff)
downloadnautilus-85fa78dae25f4a96701ba5d597e3b8983fb3198b.tar.gz
Workaround for bug 2239, minor tweaks for "attached" font files.
Diffstat (limited to 'librsvg/rsvg.c')
-rw-r--r--librsvg/rsvg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/librsvg/rsvg.c b/librsvg/rsvg.c
index c00eab4c6..07c941260 100644
--- a/librsvg/rsvg.c
+++ b/librsvg/rsvg.c
@@ -230,6 +230,13 @@ rsvg_start_svg (RsvgCtx *ctx, const xmlChar **atts)
width, height);
#endif
+ if (width < 0 || height < 0)
+ {
+ g_warning ("rsvg_start_svg: width and height attributes are not present in SVG\n");
+ if (width < 0) width = 500;
+ if (height < 0) height = 500;
+ }
+
/* Scale size of target pixbuf */
width = ceil (width * ctx->zoom);
height = ceil (height * ctx->zoom);