From b07c5c5e802ee4d9cc947ca24d7b15fa5c71a7e8 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Tue, 5 Dec 2017 22:11:12 +0100 Subject: Fix bug#1643179. Guides lock lost on load. Patch proposed in #5 --- src/file.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/file.cpp') diff --git a/src/file.cpp b/src/file.cpp index 320016a41..e5caaaca0 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -272,6 +272,11 @@ bool sp_file_open(const Glib::ustring &uri, } if ( INKSCAPE.use_gui() ) { + + SPNamedView *nv = desktop->namedview; + if (nv->lockguides) { + desktop->toggleGuidesLock(); + } // Perform a fixup pass for hrefs. if ( Inkscape::ResourceManager::getManager().fixupBrokenLinks(doc) ) { Glib::ustring msg = _("Broken links have been changed to point to existing files."); -- cgit v1.2.3