Code

excise never-used code and stale comments
[inkscape.git] / src / file.cpp
index d42abbff686681864b005d6c80bdabc954a18d36..e1a05897bb128ac2e9c4ebb066dafe1c2125ac02 100644 (file)
@@ -183,7 +183,9 @@ sp_file_open(gchar const *uri, Inkscape::Extension::Extension *key, bool add_to_
 
         if (existing && existing->virgin && replace_empty) {
             // If the current desktop is empty, open the document there
+            sp_document_ensure_up_to_date (doc);
             desktop->change_document(doc);
+            sp_document_resized_signal_emit (doc, sp_document_width(doc), sp_document_height(doc));
         } else {
             if (!Inkscape::NSApplication::Application::getNewGui()) {
                 // create a whole new desktop and window