summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 338bf4c)
raw | patch | inline | side by side (parent: 338bf4c)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 8 Oct 2006 06:51:45 +0000 (06:51 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 8 Oct 2006 06:51:45 +0000 (06:51 +0000) |
src/sp-use.cpp | patch | blob | history |
diff --git a/src/sp-use.cpp b/src/sp-use.cpp
index 31bee3717745eb841a3de4d6f4f906528e320957..ae4e9f61a2c451e21f7413115cc073ecdd0cabfd 100644 (file)
--- a/src/sp-use.cpp
+++ b/src/sp-use.cpp
NRArenaItem *ai = NRArenaGroup::create(arena);
nr_arena_group_set_transparent(NR_ARENA_GROUP(ai), FALSE);
+ nr_arena_group_set_style(NR_ARENA_GROUP(ai), SP_OBJECT_STYLE(item));
if (use->child) {
NRArenaItem *ac = sp_item_invoke_show(SP_ITEM(use->child), arena, key, flags);
if (flags & SP_OBJECT_MODIFIED_FLAG) flags |= SP_OBJECT_PARENT_MODIFIED_FLAG;
flags &= SP_OBJECT_MODIFIED_CASCADE;
+ if (flags & SP_OBJECT_STYLE_MODIFIED_FLAG) {
+ for (SPItemView *v = SP_ITEM(object)->display; v != NULL; v = v->next) {
+ nr_arena_group_set_style(NR_ARENA_GROUP(v->arenaitem), SP_OBJECT_STYLE(object));
+ }
+ }
+
/* Set up child viewport */
if (use->x.unit == SVGLength::PERCENT) {
use->x.computed = use->x.value * (ictx->vp.x1 - ictx->vp.x0);
}
flags &= SP_OBJECT_MODIFIED_CASCADE;
+ if (flags & SP_OBJECT_STYLE_MODIFIED_FLAG) {
+ for (SPItemView *v = SP_ITEM(object)->display; v != NULL; v = v->next) {
+ nr_arena_group_set_style(NR_ARENA_GROUP(v->arenaitem), SP_OBJECT_STYLE(object));
+ }
+ }
+
SPObject *child = use_obj->child;
if (child) {
g_object_ref(G_OBJECT(child));