diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2014-02-07 12:27:42 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2014-02-07 12:27:42 +0000 |
| commit | 9dc9db77232e264edcfec1e6ba6437130ac4c0eb (patch) | |
| tree | 6b444299f5791a7811012a3ccc51f47735a325f9 /src/document.cpp | |
| parent | Markers are never shown directly, even if outside of <defs> section. (diff) | |
| download | inkscape-9dc9db77232e264edcfec1e6ba6437130ac4c0eb.tar.gz inkscape-9dc9db77232e264edcfec1e6ba6437130ac4c0eb.zip | |
Prevent attempt to initialize/compare std::string with/to null pointer.
(bzr r13004)
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 2 |
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; |
