diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-03-17 06:28:44 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-03-17 06:28:44 +0000 |
| commit | 6a617a5b22af2b3acb97f67f5d03c951d949eec2 (patch) | |
| tree | 09b0e18a93846b180c8806e2a166635147369122 /src | |
| parent | describe clipped/masked objects in statusbar (diff) | |
| download | inkscape-6a617a5b22af2b3acb97f67f5d03c951d949eec2.tar.gz inkscape-6a617a5b22af2b3acb97f67f5d03c951d949eec2.zip | |
ensure document up-to-date if it's being loaded into a virgin desktop
(bzr r258)
Diffstat (limited to 'src')
| -rw-r--r-- | src/file.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
