From 88286fa544522728a3d6e4db666ac0402c33795f Mon Sep 17 00:00:00 2001 From: alvinhochun Date: Mon, 29 Aug 2016 08:07:58 +0200 Subject: [Bug #1425542] Filter applied on group does not auto redraw when edited. Fixed bugs: - https://launchpad.net/bugs/1425542 (bzr r15083) --- src/sp-item-group.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/sp-item-group.cpp b/src/sp-item-group.cpp index 097026057..aeeea5721 100644 --- a/src/sp-item-group.cpp +++ b/src/sp-item-group.cpp @@ -204,6 +204,13 @@ void SPGroup::modified(guint flags) { flags &= SP_OBJECT_MODIFIED_CASCADE; + if (flags & SP_OBJECT_STYLE_MODIFIED_FLAG) { + for (SPItemView *v = this->display; v != NULL; v = v->next) { + Inkscape::DrawingGroup *group = dynamic_cast(v->arenaitem); + group->setStyle(this->style); + } + } + std::vector l=this->childList(true); for(std::vector::const_iterator i=l.begin();i!=l.end();++i){ SPObject *child = *i; -- cgit v1.2.3