Code

http://sourceforge.net/mailarchive/forum.php?thread_name=5747bce9a7ed077c1b4fc9f0f4f8...
authorjohanengelen <johanengelen@users.sourceforge.net>
Fri, 30 Nov 2007 19:39:49 +0000 (19:39 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Fri, 30 Nov 2007 19:39:49 +0000 (19:39 +0000)
src/layer-manager.cpp

index 86c8e4fcd8be5d03170a1cec2d7cc65891946cca..1ecdef30056c283d1a6fb7f9554aeec3950db344 100644 (file)
@@ -174,6 +174,9 @@ void LayerManager::_rebuild() {
 
     _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 ) {