diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2013-09-19 22:30:19 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2013-09-19 22:30:19 +0000 |
| commit | 72a748b2303caf2c16a98c175d7f444d3b558ca5 (patch) | |
| tree | 8d97d92eeefe4a9b06d50f5e35174c3c67a695f2 /src/sp-object.cpp | |
| parent | updates for cmake (diff) | |
| download | inkscape-72a748b2303caf2c16a98c175d7f444d3b558ca5.tar.gz inkscape-72a748b2303caf2c16a98c175d7f444d3b558ca5.zip | |
Fix assertion failure on Ctrl+C
(bzr r12548)
Diffstat (limited to 'src/sp-object.cpp')
| -rw-r--r-- | src/sp-object.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp index 895b36e1c..1ab3cade8 100644 --- a/src/sp-object.cpp +++ b/src/sp-object.cpp @@ -588,9 +588,12 @@ void SPObject::child_added(Inkscape::XML::Node *child, Inkscape::XML::Node *ref) ochild->invoke_build(object->document, child, object->cloned); } catch (const FactoryExceptions::TypeNotRegistered& e) { - if (std::string(e.what()) != "rdf:RDF") { // temporary special case - g_warning("TypeNotRegistered exception: %s", e.what()); - } + std::string node = e.what(); + // special cases + if (node == "rdf:RDF") return; // no SP node yet + if (node == "inkscape:clipboard") return; // SP node not necessary + + g_warning("TypeNotRegistered exception: %s", e.what()); } } |
