summaryrefslogtreecommitdiffstats
path: root/src/file.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2017-12-05 21:11:12 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2017-12-05 23:23:03 +0000
commitb07c5c5e802ee4d9cc947ca24d7b15fa5c71a7e8 (patch)
tree17a3a3de92ba896bd56d1175fb7307f96d7d43ef /src/file.cpp
parentFix bug:1695649 - Knot LPE has no effect after Simplify or B-Spline (diff)
downloadinkscape-b07c5c5e802ee4d9cc947ca24d7b15fa5c71a7e8.tar.gz
inkscape-b07c5c5e802ee4d9cc947ca24d7b15fa5c71a7e8.zip
Fix bug#1643179. Guides lock lost on load. Patch proposed in #5
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp5
1 files changed, 5 insertions, 0 deletions
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.");