diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-13 14:25:15 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-13 14:25:15 +0100 |
commit | bb71912c09b41c1daa11c10bc7b229147a022ec3 (patch) | |
tree | 232085af50a4548a09de67d731110be48bb13090 /src/styleengine.cc | |
parent | 1b38c3eeac1bb16030323cb68859adb00bf98004 (diff) |
pass valign property from base style into wordStyle
This fixes rendering of <sub>, <sup> elements.
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r-- | src/styleengine.cc | 2 |
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; } |