summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-13 14:25:15 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-13 14:25:15 +0100
commitbb71912c09b41c1daa11c10bc7b229147a022ec3 (patch)
tree232085af50a4548a09de67d731110be48bb13090 /src
parent1b38c3eeac1bb16030323cb68859adb00bf98004 (diff)
pass valign property from base style into wordStyle
This fixes rendering of <sub>, <sup> elements.
Diffstat (limited to 'src')
-rw-r--r--src/styleengine.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index bd5c60ed..accfbd7d 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -415,6 +415,8 @@ Style * StyleEngine::wordStyle0 (CssPropertyList *nonCssProperties) {
if (stack->getRef (stack->size () - 1)->inheritBackgroundColor)
attrs.backgroundColor = style ()->backgroundColor;
+ attrs.valign = style ()->valign;
+
stack->getRef (stack->size () - 1)->wordStyle = Style::create (layout, &attrs);
return stack->getRef (stack->size () - 1)->wordStyle;
}