Commit 69af5b43 authored by Dom Lachowicz's avatar Dom Lachowicz

handle RX not specified when RY is

parent 35ea3da3
2003-02-02 Dom Lachowicz <cinamod@hotmail.com>
* rsvg-shapes.c (rect): Handle missing RX when RY is specified (http://www.w3.org/TR/SVG11/shapes.html#RectElement)
=== librsvg 2.2.2 ===
2003-02-01 Dom Lachowicz <cinamod@hotmail.com>
......
......@@ -481,6 +481,8 @@ rsvg_start_rect (RsvgHandle *ctx, const xmlChar **atts)
if (got_rx && !got_ry)
ry = rx;
else if (got_ry && !got_rx)
rx = ry;
if (x < 0. || y < 0. || w < 0. || h < 0. || rx < 0. || ry < 0.)
return;
......
......@@ -39,7 +39,11 @@ GQuark rsvg_error_quark (void) G_GNUC_CONST;
typedef struct RsvgHandle RsvgHandle;
/**
* RsvgSizeFunc
* Function to let a user of the library specify the SVG's dimensions
* @width: the ouput width the SVG should be
* @height: the output height the SVG should be
* @user_data: user data
*/
typedef void (* RsvgSizeFunc) (gint *width,
gint *height,
......
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