diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-07-25 16:00:02 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-08-02 21:26:28 +0000 |
| commit | 8330e69bbb618cf8cdf87781d6252e3e3f2b4bd6 (patch) | |
| tree | cbcd0ada66021cb929e8e6e0c6a0bf382e52050f /src/style.cpp | |
| parent | Adding font size scale (diff) | |
| download | inkscape-8330e69bbb618cf8cdf87781d6252e3e3f2b4bd6.tar.gz inkscape-8330e69bbb618cf8cdf87781d6252e3e3f2b4bd6.zip | |
Stop worinig with units switch to px. Keep discussion opengit add .git add .
Diffstat (limited to 'src/style.cpp')
| -rw-r--r-- | src/style.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/style.cpp b/src/style.cpp index 5dc5ad962..69d31ee1e 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. */ -static void +void sp_css_attr_scale_property_single(SPCSSAttr *css, gchar const *property, - double ex, bool only_with_units = false) + double ex, bool only_with_units) { gchar const *w = sp_repr_css_property(css, property, nullptr); if (w) { @@ -1598,17 +1598,17 @@ sp_css_attr_scale_property_list(SPCSSAttr *css, gchar const *property, double ex * Scale any properties that may hold <length> by ex. */ SPCSSAttr * -sp_css_attr_scale(SPCSSAttr *css, double ex, bool scale_relative_font_size, bool scale_relative_line_height) +sp_css_attr_scale(SPCSSAttr *css, double ex) { sp_css_attr_scale_property_single(css, "baseline-shift", ex); sp_css_attr_scale_property_single(css, "stroke-width", ex); sp_css_attr_scale_property_list (css, "stroke-dasharray", ex); sp_css_attr_scale_property_single(css, "stroke-dashoffset", ex); - sp_css_attr_scale_property_single(css, "font-size", ex, !scale_relative_font_size); + sp_css_attr_scale_property_single(css, "font-size", ex, true); 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", ex, !scale_relative_line_height); + sp_css_attr_scale_property_single(css, "line-height", true); return css; } |
