summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2015-09-20 18:01:28 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2015-09-20 18:01:28 +0000
commit6d6a3649cacefa158228d884058347677fc6f51f (patch)
tree18b77be17d7cc179eaaf38757a7b16804ac03085 /src/document.cpp
parentEnable "Tile" filter primitive in Filters dialog. (diff)
downloadinkscape-6d6a3649cacefa158228d884058347677fc6f51f.tar.gz
inkscape-6d6a3649cacefa158228d884058347677fc6f51f.zip
fix regression observed on layer dialog
(bzr r14379)
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 54e98b3e6..c64bf3ed5 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -1515,13 +1515,13 @@ bool SPDocument::addResource(gchar const *key, SPObject *object)
GQuark q = g_quark_from_string(key);
- /*do not send signal if the object has no id (yet),
+ /*in general, do not send signal if the object has no id (yet),
it means the object is not completely built.
(happens when pasting swatches across documents, cf bug 1495106)
[this check should be more generally presend on emit() calls since
the backtrace is unusable with crashed from this cause]
*/
- if(object->getId())
+ if(object->getId() || dynamic_cast<SPGroup*>(object) )
priv->resources_changed_signals[q].emit();
result = true;