Code

fix emergency save (bug #184376)
authormental <mental@users.sourceforge.net>
Sun, 3 Feb 2008 22:44:06 +0000 (22:44 +0000)
committermental <mental@users.sourceforge.net>
Sun, 3 Feb 2008 22:44:06 +0000 (22:44 +0000)
src/inkscape.cpp

index 388b8fb1f87f6030679d7edf7a12e071aff317c5..995684d6cf44132192730b3780b650e588b2d5d6 100644 (file)
@@ -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);
         }
     }