From a233a33e9bd81f76a75d17a6355ed59e1679d125 Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Thu, 25 Jul 2019 20:03:01 +0200 Subject: Removing absolute units --- src/style.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/style.cpp') diff --git a/src/style.cpp b/src/style.cpp index 69d31ee1e..2d82791af 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -1538,9 +1538,9 @@ sp_css_attr_unset_uris(SPCSSAttr *css) /** * Scale a single-value property. */ -void +static void sp_css_attr_scale_property_single(SPCSSAttr *css, gchar const *property, - double ex, bool only_with_units) + double ex, bool only_with_units = false) { gchar const *w = sp_repr_css_property(css, property, nullptr); if (w) { @@ -1608,7 +1608,7 @@ sp_css_attr_scale(SPCSSAttr *css, double ex) sp_css_attr_scale_property_single(css, "kerning", ex); sp_css_attr_scale_property_single(css, "letter-spacing", ex); sp_css_attr_scale_property_single(css, "word-spacing", ex); - sp_css_attr_scale_property_single(css, "line-height", true); + sp_css_attr_scale_property_single(css, "line-height", ex, true); return css; } -- cgit v1.2.3