aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/styleengine.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index 7dcd3dd5..b5e2a3a4 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -418,6 +418,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;
}