diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-07-25 18:03:01 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-08-02 21:26:28 +0000 |
| commit | a233a33e9bd81f76a75d17a6355ed59e1679d125 (patch) | |
| tree | b7ab4dc90ace09b4a60dfa257f9dd9042dad920f /src/style.cpp | |
| parent | Stop worinig with units switch to px. Keep discussion opengit add .git add . (diff) | |
| download | inkscape-a233a33e9bd81f76a75d17a6355ed59e1679d125.tar.gz inkscape-a233a33e9bd81f76a75d17a6355ed59e1679d125.zip | |
Removing absolute units
Diffstat (limited to 'src/style.cpp')
| -rw-r--r-- | src/style.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |
