]> git.tokkee.org Git - inkscape.git/commitdiff

Code

fix crash bug #197664
authorjohanengelen <johanengelen@users.sourceforge.net>
Sun, 2 Mar 2008 15:48:34 +0000 (15:48 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sun, 2 Mar 2008 15:48:34 +0000 (15:48 +0000)
src/extension/internal/gdkpixbuf-input.cpp

index 9f3360bab0f95febfa06992cb0ef7a9c3f0a9a75..943300c9ef85a0fad0de6dfb8061b0dc724e4da6 100644 (file)
@@ -66,12 +66,13 @@ GdkpixbufInput::open(Inkscape::Extension::Input */*mod*/, char const *uri)
         gdk_pixbuf_unref(pb);
         //alter the canvas size to fit the image size
         fit_canvas_to_drawing(doc);
-        // restore undo, as now this document may be shown to the user if a bitmap was opened
-        sp_document_set_undo_sensitive(doc, saved);
     } else {
         printf("GdkPixbuf loader failed\n");
     }
 
+    // restore undo, as now this document may be shown to the user if a bitmap was opened
+    sp_document_set_undo_sensitive(doc, saved);
+
     return doc;
 }