summaryrefslogtreecommitdiffstats
path: root/src/object/sp-namedview.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2018-05-09 13:07:03 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2018-05-09 13:07:03 +0000
commit9c6f702ebfbd401e7d4119b6d6b434783cf4c5b4 (patch)
tree97ef62fc5823e6d784bc9259f889ad11c0e659f0 /src/object/sp-namedview.cpp
parentCreate stateless alignment selector and use it instead (diff)
parentGuides created after "lock all guides" selected should be locked (diff)
downloadinkscape-9c6f702ebfbd401e7d4119b6d6b434783cf4c5b4.tar.gz
inkscape-9c6f702ebfbd401e7d4119b6d6b434783cf4c5b4.zip
Merge branch 'guidespanel' of gitlab.com:darktrojan/inkscape
Diffstat (limited to 'src/object/sp-namedview.cpp')
-rw-r--r--src/object/sp-namedview.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/object/sp-namedview.cpp b/src/object/sp-namedview.cpp
index 59c7129f6..7cea56119 100644
--- a/src/object/sp-namedview.cpp
+++ b/src/object/sp-namedview.cpp
@@ -590,6 +590,7 @@ void SPNamedView::set(unsigned int key, const gchar* value) {
}
case SP_ATTR_INKSCAPE_LOCKGUIDES:
this->lockguides = value ? sp_str_to_bool(value) : FALSE;
+ this->lockGuides();
this->requestModified(SP_OBJECT_MODIFIED_FLAG);
break;
default:
@@ -1098,6 +1099,12 @@ bool SPNamedView::getGuides()
return v;
}
+
+void SPNamedView::lockGuides()
+{
+ sp_namedview_lock_guides(this);
+}
+
/**
* Gets page fitting margin information from the namedview node in the XML.
* \param nv_repr reference to this document's namedview