summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-08-02 20:29:54 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-08-02 20:29:54 +0000
commitab74a354e7b06b1f560c9888c1ce1b728e8db359 (patch)
treeee4996f3dcfd4527907e6a191c7d8a2433d05eee
parentRemove unused files. (diff)
downloadinkscape-ab74a354e7b06b1f560c9888c1ce1b728e8db359.tar.gz
inkscape-ab74a354e7b06b1f560c9888c1ce1b728e8db359.zip
Do not scale font-size when set to a relative unit
Relative units already respect the transform of parents and don't have to be recalculated when set to relative unit from inside the UI It's actually not possible to set relative font-sizes anywhere in the UI except when setting sub/superscripts (sets font-size to 65%) Fixed bug: - https://bugs.launchpad.net/inkscape/+bug/1658029
-rw-r--r--src/style.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/style.cpp b/src/style.cpp
index ca0eed6f7..ba6fd5f58 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -1966,7 +1966,7 @@ sp_css_attr_scale(SPCSSAttr *css, double 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);
+ 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);