summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralvinhochun <alvinhochun@gmail.com>2016-08-29 06:07:58 +0000
committerJazzyNico <nicoduf@yahoo.fr>2016-08-29 06:07:58 +0000
commit88286fa544522728a3d6e4db666ac0402c33795f (patch)
tree25723fdcf1fa124811fde538e3e4d19a618ab5ff
parentUse new website link which allows us to control the answers provider (diff)
downloadinkscape-88286fa544522728a3d6e4db666ac0402c33795f.tar.gz
inkscape-88286fa544522728a3d6e4db666ac0402c33795f.zip
[Bug #1425542] Filter applied on group does not auto redraw when edited.
Fixed bugs: - https://launchpad.net/bugs/1425542 (bzr r15083)
-rw-r--r--src/sp-item-group.cpp7
1 files changed, 7 insertions, 0 deletions
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<Inkscape::DrawingGroup *>(v->arenaitem);
+ group->setStyle(this->style);
+ }
+ }
+
std::vector<SPObject*> l=this->childList(true);
for(std::vector<SPObject*>::const_iterator i=l.begin();i!=l.end();++i){
SPObject *child = *i;