summaryrefslogtreecommitdiffstats
path: root/src/sp-namedview.cpp
diff options
context:
space:
mode:
authorMatthew Petroff <matthew@mpetroff.net>2013-07-18 21:21:24 +0000
committerMatthew Petroff <matthew@mpetroff.net>2013-07-18 21:21:24 +0000
commit3772fc428950b2b946a1bd7c7c97e06219c3165f (patch)
tree672f1a63f086c8821e388ce62562f2fa969fdbc0 /src/sp-namedview.cpp
parentAdded more more convientent unit functions. (diff)
downloadinkscape-3772fc428950b2b946a1bd7c7c97e06219c3165f.tar.gz
inkscape-3772fc428950b2b946a1bd7c7c97e06219c3165f.zip
Switch unit functions from using pointer arguements to reference arguements.
(bzr r12380.1.28)
Diffstat (limited to 'src/sp-namedview.cpp')
-rw-r--r--src/sp-namedview.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sp-namedview.cpp b/src/sp-namedview.cpp
index 0833d93bf..bf3adf816 100644
--- a/src/sp-namedview.cpp
+++ b/src/sp-namedview.cpp
@@ -1119,8 +1119,7 @@ double SPNamedView::getMarginLength(gchar const * const key,
if (*margin_units == percent) {
return (use_width)? width * value : height * value;
}
-// if (!sp_convert_distance (&value, margin_units, return_units)) {
- if (!margin_units->compatibleWith(return_units)) {
+ if (!margin_units->compatibleWith(*return_units)) {
return 0.0;
}
return value;