From 8d2e0c37027b55156c81a7733f35338409e37a00 Mon Sep 17 00:00:00 2001 From: John Smith Date: Sat, 4 Aug 2012 11:20:42 +0900 Subject: Fix for 1030239 : Custom markers only added to the list in Stroke Style after reloading the file (bzr r11588) --- src/document.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/document.cpp') 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; } -- cgit v1.2.3