summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
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;