summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/text.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/text.cc b/src/text.cc
index 6fbdbe6e..782d1711 100644
--- a/src/text.cc
+++ b/src/text.cc
@@ -46,6 +46,10 @@ Text::Text (boost::shared_ptr<const cxml::Node> node)
v_position = x.get ();
optional<string> v = node->optional_string_attribute ("VAlign");
+ if (!v) {
+ v = node->optional_string_attribute ("Valign");
+ }
+
if (v) {
v_align = string_to_valign (v.get ());
}