summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-21 03:01:38 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-21 03:01:38 +0000
commit2e25fdc885226110c0ab28b3c8026e3dc4345cb5 (patch)
treeb957b7710809230b6df727740ea1a5b25125318a /src
parent8e0e4e9d075595fea5169cd7d47587d7c6970d2c (diff)
Pick up alternative capitalisation of VAlign parameter in subtitles.
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 ());
}