summaryrefslogtreecommitdiffstats
path: root/src/sp-namedview.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-11-20 09:22:42 +0000
committertavmjong-free <tavmjong@free.fr>2014-11-20 09:22:42 +0000
commitf0f92e6aad8d897fa206474754a7bd09220c993d (patch)
tree12b24d71165c4d256c108a3b7575242c32132e57 /src/sp-namedview.cpp
parentFix length tests. (diff)
downloadinkscape-f0f92e6aad8d897fa206474754a7bd09220c993d.tar.gz
inkscape-f0f92e6aad8d897fa206474754a7bd09220c993d.zip
Rename variable to better express its use. (units -> page_size_units)
(bzr r13740)
Diffstat (limited to 'src/sp-namedview.cpp')
-rw-r--r--src/sp-namedview.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sp-namedview.cpp b/src/sp-namedview.cpp
index 8b28347f1..b68421dc6 100644
--- a/src/sp-namedview.cpp
+++ b/src/sp-namedview.cpp
@@ -72,7 +72,7 @@ SPNamedView::SPNamedView() : SPObjectGroup(), snap_manager(this) {
this->guidehicolor = 0;
this->views = NULL;
this->borderlayer = 0;
- this->units = NULL;
+ this->page_size_units = NULL;
this->window_x = 0;
this->cy = 0;
this->window_y = 0;
@@ -581,6 +581,7 @@ void SPNamedView::set(unsigned int key, const gchar* value) {
break;
}
case SP_ATTR_UNITS: {
+ // Only used in "Custom size" section of Document Properties dialog
Inkscape::Util::Unit const *new_unit = NULL;
if (value) {
@@ -599,7 +600,7 @@ void SPNamedView::set(unsigned int key, const gchar* value) {
/* fixme: Don't use g_log (see above). */
}
}
- this->units = new_unit;
+ this->page_size_units = new_unit;
this->requestModified(SP_OBJECT_MODIFIED_FLAG);
break;
}