summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-02-07 12:27:42 +0000
committertavmjong-free <tavmjong@free.fr>2014-02-07 12:27:42 +0000
commit9dc9db77232e264edcfec1e6ba6437130ac4c0eb (patch)
tree6b444299f5791a7811012a3ccc51f47735a325f9 /src/document.cpp
parentMarkers are never shown directly, even if outside of <defs> section. (diff)
downloadinkscape-9dc9db77232e264edcfec1e6ba6437130ac4c0eb.tar.gz
inkscape-9dc9db77232e264edcfec1e6ba6437130ac4c0eb.zip
Prevent attempt to initialize/compare std::string with/to null pointer.
(bzr r13004)
Diffstat (limited to '')
-rw-r--r--src/document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 6f957cace..470d0cc5a 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -473,7 +473,7 @@ SPDocument *SPDocument::createChildDoc(std::string const &uri)
SPDocument *parent = this;
SPDocument *document = NULL;
- while(parent != NULL && document == NULL) {
+ while(parent != NULL && parent->getURI() != NULL && document == NULL) {
// Check myself and any parents int he chain
if(uri == parent->getURI()) {
document = parent;