Commit a60a8e36 authored by Dom Lachowicz's avatar Dom Lachowicz

don't set has_width or has_height unless their values are > 0

parent 9588cc30
......@@ -3,6 +3,7 @@
* autogen.sh: Let librsvg build out of srcdir. Bug #158331
* test-display.c: Populate save dialogs with the SVG's name. Bug #318010.
* configure.in: Ditto
* rsvg-structure.c: Related to bug #318025, don't set has_width or has_height unless they are > 0.
2005-10-4 Caleb Moore <c.moore@student.unsw.edu.au>
......
......@@ -314,14 +314,14 @@ rsvg_node_svg_set_atts (RsvgNode * self, RsvgHandle *ctx, RsvgPropertyBag *atts)
if ((value = rsvg_property_bag_lookup (atts, "width")))
{
svg->w = rsvg_css_parse_normalized_length (value, ctx->dpi_x, ctx->width, 1);
svg->hasw = TRUE;
svg->hasw = (svg->w > 0);
if (!svg->has_vbox)
ctx->width = svg->w;
}
if ((value = rsvg_property_bag_lookup (atts, "height")))
{
svg->h = rsvg_css_parse_normalized_length (value, ctx->dpi_y, ctx->height, 1);
svg->hash = TRUE;
svg->hash = (svg->h > 0);
if (!svg->has_vbox)
ctx->height = svg->h;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment