From ce95d2d6aaca3faca8fd0b56ca4ae855803f72fc Mon Sep 17 00:00:00 2001 From: mental Date: Sun, 3 Feb 2008 22:44:06 +0000 Subject: [PATCH] fix emergency save (bug #184376) --- src/inkscape.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inkscape.cpp b/src/inkscape.cpp index 388b8fb1f..995684d6c 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -1149,7 +1149,7 @@ inkscape_add_document (SPDocument *document) if (!Inkscape::NSApplication::Application::getNewGui()) { - if ( inkscape->document_set.find(document) != inkscape->document_set.end() ) { + if ( inkscape->document_set.find(document) == inkscape->document_set.end() ) { inkscape->documents = g_slist_append (inkscape->documents, document); } @@ -1171,7 +1171,7 @@ inkscape_remove_document (SPDocument *document) if (!Inkscape::NSApplication::Application::getNewGui()) { inkscape->document_set.erase(document); - if ( inkscape->document_set.find(document) == inkscape->document_set.end() ) { + if ( inkscape->document_set.find(document) != inkscape->document_set.end() ) { inkscape->documents = g_slist_remove (inkscape->documents, document); } } -- 2.30.2