diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2017-01-07 15:32:48 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2017-01-07 15:32:48 +0000 |
| commit | 0baa29a9f73547319d667d898c961a9fdb436c9e (patch) | |
| tree | 3e9cc62dc9d13cc6390a32d447afd57448b32b89 /src/sp-object.cpp | |
| parent | [Bug #1654312] Tutorials - Catalan translation for Inkscape 0.92.1. (diff) | |
| download | inkscape-0baa29a9f73547319d667d898c961a9fdb436c9e.tar.gz inkscape-0baa29a9f73547319d667d898c961a9fdb436c9e.zip | |
suppress warnings on symbols dialog
(bzr r15398)
Diffstat (limited to 'src/sp-object.cpp')
| -rw-r--r-- | src/sp-object.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp index e9c60fc7d..75f4657ef 100644 --- a/src/sp-object.cpp +++ b/src/sp-object.cpp @@ -660,7 +660,9 @@ void SPObject::build(SPDocument *document, Inkscape::XML::Node *repr) { object->readAttr("xml:space"); object->readAttr("inkscape:label"); object->readAttr("inkscape:collect"); - if(object->cloned) + if(object->cloned && (repr->attribute("id")) ) // The cases where this happens are when the "original" has no id. This happens + // if it is a SPString (a TextNode, e.g. in a <title>), or when importing + // stuff externally modified to have no id. object->clone_original = document->getObjectById(repr->attribute("id")); for (Inkscape::XML::Node *rchild = repr->firstChild() ; rchild != NULL; rchild = rchild->next()) { |
