changeset 755:bad0f47c6758

pass valign property from base style into wordStyle This fixes rendering of <sub>, <sup> elements.
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Tue, 13 Jan 2009 14:25:15 +0100
parents 336ae7ab06a8
children d1dd7f03b8e6
files src/styleengine.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/styleengine.cc	Mon Jan 12 18:12:33 2009 +0100
+++ b/src/styleengine.cc	Tue Jan 13 14:25:15 2009 +0100
@@ -415,6 +415,8 @@
    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;
 }