From: buliabyak Date: Fri, 17 Mar 2006 06:28:44 +0000 (+0000) Subject: ensure document up-to-date if it's being loaded into a virgin desktop X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a3ff46f4ebfd727e2580a2705888447333b3ea45;p=inkscape.git ensure document up-to-date if it's being loaded into a virgin desktop --- diff --git a/src/file.cpp b/src/file.cpp index d42abbff6..e1a05897b 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -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