summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 04a422d)
raw | patch | inline | side by side (parent: 04a422d)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 9 Apr 2006 05:32:24 +0000 (05:32 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 9 Apr 2006 05:32:24 +0000 (05:32 +0000) |
src/sp-text.cpp | patch | blob | history |
diff --git a/src/sp-text.cpp b/src/sp-text.cpp
index 3bbb3b89263d55e0fcc91c14c4d3eccda0bb7c39..c1c4acae405cf64362c6bc6d3b4444c6477fec87 100644 (file)
--- a/src/sp-text.cpp
+++ b/src/sp-text.cpp
guint cflags = (flags & SP_OBJECT_MODIFIED_CASCADE);
if (flags & SP_OBJECT_MODIFIED_FLAG) cflags |= SP_OBJECT_PARENT_MODIFIED_FLAG;
+ // FIXME: all that we need to do here is nr_arena_glyphs_[group_]set_style, to set the changed
+ // style, but there's no easy way to access the arena glyphs or glyph groups corresponding to a
+ // text object. Therefore we do here the same as in _update, that is, destroy all arena items
+ // and create new ones. This is probably quite wasteful.
+ if (flags & ( SP_OBJECT_STYLE_MODIFIED_FLAG )) {
+ SPText *text = SP_TEXT (object);
+ NRRect paintbox;
+ sp_item_invoke_bbox(text, &paintbox, NR::identity(), TRUE);
+ for (SPItemView* v = text->display; v != NULL; v = v->next) {
+ text->_clearFlow(NR_ARENA_GROUP(v->arenaitem));
+ text->layout.show(NR_ARENA_GROUP(v->arenaitem), &paintbox);
+ }
+ }
+
/* Create temporary list of children */
GSList *l = NULL;
SPObject *child;