summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-08-04 02:20:42 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-08-04 02:20:42 +0000
commit8d2e0c37027b55156c81a7733f35338409e37a00 (patch)
tree6ff98fb6be091b7efb291ee6e21c8b0942ca28ac /src/document.cpp
parentFix for 1032880 : Stroke style panel is mirrored between open windows (diff)
downloadinkscape-8d2e0c37027b55156c81a7733f35338409e37a00.tar.gz
inkscape-8d2e0c37027b55156c81a7733f35338409e37a00.zip
Fix for 1030239 : Custom markers only added to the list in Stroke Style after reloading the file
(bzr r11588)
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 01c5481b0..5eaab3eca 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -221,6 +221,9 @@ SPDocument::~SPDocument() {
SPDefs *SPDocument::getDefs()
{
+ if (!root) {
+ return NULL;
+ }
return root->defs;
}