summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-03-22 13:56:36 +0000
committertavmjong-free <tavmjong@free.fr>2016-03-22 13:56:36 +0000
commit4cce40a79ab973a3609cd5ee7666673bc2337fef (patch)
treeb2f2ccbc21c94eb5d0d0c5e377473dd4ec04106d /src/style.cpp
parentReverting 14701. (diff)
downloadinkscape-4cce40a79ab973a3609cd5ee7666673bc2337fef.tar.gz
inkscape-4cce40a79ab973a3609cd5ee7666673bc2337fef.zip
Add line-height unit selector to text toolbar.
Remove 'm' and 'ft' non-CSS lengths. (bzr r14716.1.3)
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/style.cpp b/src/style.cpp
index 35138d25b..1f98a50a3 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -1510,7 +1510,8 @@ gchar const *
sp_style_get_css_unit_string(int unit)
{
// specify px by default, see inkscape bug 1221626, mozilla bug 234789
-
+ // This is a problematic fix as some properties (e.g. 'line-height') have
+ // different behaviour if there is no unit.
switch (unit) {
case SP_CSS_UNIT_NONE: return "px";