summaryrefslogtreecommitdiffstats
path: root/src/text-editing.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2013-09-10 17:17:51 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2013-09-10 17:17:51 +0000
commitd98298d1434a666d24434aa08cdff878ee51a039 (patch)
treeffed0f04a330482dc20ed2599be959f02d661f7f /src/text-editing.cpp
parentAdd a check so objects removed from the document dont crash inkscape, happens... (diff)
downloadinkscape-d98298d1434a666d24434aa08cdff878ee51a039.tar.gz
inkscape-d98298d1434a666d24434aa08cdff878ee51a039.zip
improve legibility
(bzr r12505)
Diffstat (limited to 'src/text-editing.cpp')
-rw-r--r--src/text-editing.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/text-editing.cpp b/src/text-editing.cpp
index 3cb896cb7..cf1c4811f 100644
--- a/src/text-editing.cpp
+++ b/src/text-editing.cpp
@@ -1282,23 +1282,23 @@ sp_te_adjust_linespacing_screen (SPItem *text, Inkscape::Text::Layout::iterator
style->line_height.value = style->line_height.computed;
break;
case SP_CSS_UNIT_PT:
- style->line_height.computed += zby * Inkscape::Util::Quantity::convert(1, "px", "pt");
+ style->line_height.computed += Inkscape::Util::Quantity::convert(zby, "px", "pt");
style->line_height.value = style->line_height.computed;
break;
case SP_CSS_UNIT_PC:
- style->line_height.computed += zby * (Inkscape::Util::Quantity::convert(1, "px", "pt") / 12);
+ style->line_height.computed += (Inkscape::Util::Quantity::convert(zby, "px", "pt") / 12);
style->line_height.value = style->line_height.computed;
break;
case SP_CSS_UNIT_MM:
- style->line_height.computed += zby * Inkscape::Util::Quantity::convert(1, "px", "mm");
+ style->line_height.computed += Inkscape::Util::Quantity::convert(zby, "px", "mm");
style->line_height.value = style->line_height.computed;
break;
case SP_CSS_UNIT_CM:
- style->line_height.computed += zby * Inkscape::Util::Quantity::convert(1, "px", "cm");
+ style->line_height.computed += Inkscape::Util::Quantity::convert(zby, "px", "cm");
style->line_height.value = style->line_height.computed;
break;
case SP_CSS_UNIT_IN:
- style->line_height.computed += zby * Inkscape::Util::Quantity::convert(1, "px", "in");
+ style->line_height.computed += Inkscape::Util::Quantity::convert(zby, "px", "in");
style->line_height.value = style->line_height.computed;
break;
}