summaryrefslogtreecommitdiffstats
path: root/src/sp-namedview.cpp
diff options
context:
space:
mode:
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;