summaryrefslogtreecommitdiff
path: root/rsvg-image.c
diff options
context:
space:
mode:
authorCaleb Michael Moore <cmoore@src.gnome.org>2005-07-28 18:10:20 +0000
committerCaleb Michael Moore <cmoore@src.gnome.org>2005-07-28 18:10:20 +0000
commitd6979476d10d1c2b61ffca6e2f076c0b43ba5503 (patch)
treea4809ec128a6c26a0ff92a5f1f865c372fdd4982 /rsvg-image.c
parentdf5c228a04d7d897a612a89f904b5951d4e72df5 (diff)
downloadlibrsvg-d6979476d10d1c2b61ffca6e2f076c0b43ba5503.tar.gz
filters working
Diffstat (limited to 'rsvg-image.c')
-rw-r--r--rsvg-image.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/rsvg-image.c b/rsvg-image.c
index 252c9125..c48dee60 100644
--- a/rsvg-image.c
+++ b/rsvg-image.c
@@ -508,7 +508,7 @@ rsvg_node_image_draw (RsvgNode * self, RsvgDrawingCtx *ctx,
rsvg_push_discrete_layer(ctx);
- if (!z->overflow && (aspect_ratio & RSVG_ASPECT_RATIO_SLICE)){
+ if (!rsvg_state_current(ctx)->overflow && (aspect_ratio & RSVG_ASPECT_RATIO_SLICE)){
rsvg_add_clipping_rect(ctx, x, y, w, h);
}
@@ -569,8 +569,6 @@ rsvg_node_image_set_atts (RsvgNode *self, RsvgHandle *ctx, RsvgPropertyBag *atts
}
if ((value = rsvg_property_bag_lookup (atts, "preserveAspectRatio")))
image->preserve_aspect_ratio = rsvg_css_parse_aspect_ratio (value);
- if ((value = rsvg_property_bag_lookup (atts, "overflow")))
- image->overflow = rsvg_css_parse_overflow(value);
rsvg_parse_style_attrs (ctx, image->super.state, "image", klazz, id, atts);
}
@@ -587,7 +585,6 @@ rsvg_new_image (void)
image->y = 0;
image->w = -1;
image->h = -1;
- image->overflow = FALSE;
image->super.state = g_new(RsvgState, 1);
rsvg_state_init(image->super.state);
image->super.type = RSVG_NODE_PATH;