From 40a7534c0439e16e222a5c76412edd5914e2eb48 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Sat, 18 Nov 2006 19:28:34 +0000 Subject: separate updating window from updating layers (bzr r1984) --- src/file.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/file.cpp') diff --git a/src/file.cpp b/src/file.cpp index 3a2301c6d..568d32572 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -106,6 +106,7 @@ sp_file_new(const Glib::ustring &templ) sp_create_window(dtw, TRUE); dt = static_cast(dtw->view); sp_namedview_window_from_document(dt); + sp_namedview_update_layers_from_document(dt); } return dt; } @@ -201,9 +202,8 @@ sp_file_open(const Glib::ustring &uri, // everyone who cares now has a reference, get rid of ours sp_document_unref(doc); // resize the window to match the document properties - // (this may be redundant for new windows... if so, move to the "virgin" - // section above) sp_namedview_window_from_document(desktop); + sp_namedview_update_layers_from_document(desktop); if (add_to_recent) { prefs_set_recent_file(SP_DOCUMENT_URI(doc), SP_DOCUMENT_NAME(doc)); -- cgit v1.2.3