aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-10-31 23:50:31 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-10-31 23:50:31 +0100
commita825ab63254077e8aff134ff7487dbef1ade2827 (patch)
treede5cf535a6b5e87205df368f1eb5f26730fc1c93 /src
parentbef80608dea6e217b7014470b649bcfab0a9c0f4 (diff)
fix text alignment
Diffstat (limited to 'src')
-rw-r--r--src/styleengine.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index e8b9cbe9..51027677 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -115,6 +115,9 @@ void StyleEngine::apply (StyleAttrs *attrs, CssPropertyList *props) {
case CssProperty::CSS_PROPERTY_LIST_STYLE_TYPE:
attrs->listStyleType = p->value.listStyleType;
break;
+ case CssProperty::CSS_PROPERTY_TEXT_ALIGN:
+ attrs->textAlign = p->value.textAlignType;
+ break;
case CssProperty::CSS_PROPERTY_TEXT_DECORATION:
attrs->textDecoration |= p->value.textDecoration;
break;