summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-07-22 17:01:51 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-08-02 21:26:28 +0000
commitd503a47978cfa1f39caf76bda02650dbeeeeb0de (patch)
tree66788c8459ab8ddbbe21fd2649ec758a00347e59 /src/style.cpp
parentFix coding style (diff)
downloadinkscape-d503a47978cfa1f39caf76bda02650dbeeeeb0de.tar.gz
inkscape-d503a47978cfa1f39caf76bda02650dbeeeeb0de.zip
Improving things poiner in rocketrr chat to line heigt in a new branch
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/style.cpp b/src/style.cpp
index 2d82791af..5dc5ad962 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -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)
+sp_css_attr_scale(SPCSSAttr *css, double ex, bool scale_relative_font_size, bool scale_relative_line_height)
{
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, true);
+ sp_css_attr_scale_property_single(css, "font-size", ex, !scale_relative_font_size);
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, true);
+ sp_css_attr_scale_property_single(css, "line-height", ex, !scale_relative_line_height);
return css;
}