From eb24f484c789d0f2950fc8a7cb33a8f7bc4c7c2a Mon Sep 17 00:00:00 2001 From: johanengelen Date: Fri, 30 Nov 2007 19:39:49 +0000 Subject: [PATCH] http://sourceforge.net/mailarchive/forum.php?thread_name=5747bce9a7ed077c1b4fc9f0f4f8a5e0%40localhost&forum_name=inkscape-devel --- src/layer-manager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/layer-manager.cpp b/src/layer-manager.cpp index 86c8e4fcd..1ecdef300 100644 --- a/src/layer-manager.cpp +++ b/src/layer-manager.cpp @@ -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 ) { -- 2.30.2