summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1ed822f)
raw | patch | inline | side by side (parent: 1ed822f)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Fri, 30 Nov 2007 19:39:49 +0000 (19:39 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Fri, 30 Nov 2007 19:39:49 +0000 (19:39 +0000) |
src/layer-manager.cpp | patch | blob | history |
diff --git a/src/layer-manager.cpp b/src/layer-manager.cpp
index 86c8e4fcd8be5d03170a1cec2d7cc65891946cca..1ecdef30056c283d1a6fb7f9554aeec3950db344 100644 (file)
--- a/src/layer-manager.cpp
+++ b/src/layer-manager.cpp
_clear();
+ if (!_document) // http://sourceforge.net/mailarchive/forum.php?thread_name=5747bce9a7ed077c1b4fc9f0f4f8a5e0%40localhost&forum_name=inkscape-devel
+ return;
+
GSList const *layers=sp_document_get_resource_list(_document, "layer");
SPObject *root=_desktop->currentRoot();
if ( root ) {