From: mental Date: Sun, 3 Feb 2008 22:44:06 +0000 (+0000) Subject: fix emergency save (bug #184376) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ce95d2d6aaca3faca8fd0b56ca4ae855803f72fc;p=inkscape.git fix emergency save (bug #184376) --- 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); } }