summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbuliabyak <>2010-03-27 22:40:38 +0000
committerbuliabyak <>2010-03-27 22:40:38 +0000
commit613d977b905aa4b2264f0fa1e791f26b50ca48ce (patch)
treeccc797a66f7086a821e028c993ead83d7dee0589 /src
parentTranslations. Small French translation update and cleanup. (diff)
downloadinkscape-613d977b905aa4b2264f0fa1e791f26b50ca48ce.tar.gz
inkscape-613d977b905aa4b2264f0fa1e791f26b50ca48ce.zip
inherit value as well as computed for linespacing and other spacing properties; fixes the linespacing display in text and font dialog
(bzr r9243)
Diffstat (limited to 'src')
-rw-r--r--src/style.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/style.cpp b/src/style.cpp
index 6d73e62ea..19ff711da 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -1446,16 +1446,19 @@ sp_style_merge_from_parent(SPStyle *const style, SPStyle const *const parent)
}
if (!style->line_height.set || style->line_height.inherit) {
+ style->line_height.value = parent->line_height.value;
style->line_height.computed = parent->line_height.computed;
style->line_height.normal = parent->line_height.normal;
}
if (!style->letter_spacing.set || style->letter_spacing.inherit) {
+ style->letter_spacing.value = parent->letter_spacing.value;
style->letter_spacing.computed = parent->letter_spacing.computed;
style->letter_spacing.normal = parent->letter_spacing.normal;
}
if (!style->word_spacing.set || style->word_spacing.inherit) {
+ style->word_spacing.value = parent->word_spacing.value;
style->word_spacing.computed = parent->word_spacing.computed;
style->word_spacing.normal = parent->word_spacing.normal;
}