From 7eee00aa64d59585d3b1c0e411551384a0a137a2 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Tue, 23 Sep 2014 15:54:19 +0200 Subject: Fix for #1334792. Correct inheritance for 'line-height' property. (bzr r13564) --- src/desktop-style.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/desktop-style.cpp') diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp index f6347e5c0..bfd662c9a 100644 --- a/src/desktop-style.cpp +++ b/src/desktop-style.cpp @@ -1011,8 +1011,8 @@ objects_query_fontnumbers (GSList *objects, SPStyle *style_res) } else if (style->line_height.unit == SP_CSS_UNIT_PERCENT || style->font_size.computed == 0) { linespacing_current = style->line_height.value; linespacing_normal = false; - } else { // we need % here - linespacing_current = style->line_height.computed / style->font_size.computed; + } else { + linespacing_current = style->line_height.computed; linespacing_normal = false; } linespacing += linespacing_current; -- cgit v1.2.3