diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-04-12 01:37:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-04-12 01:37:00 +0100 |
| commit | 4b8c626b7e66ab1d4d69606e10316542c8873842 (patch) | |
| tree | 94140f93b3911196ab60866fefb5c9f807a7a2ab /src/text_node.cc | |
| parent | 4b8eee1359d817937b84df7e88126fa16040e5c9 (diff) | |
Add direction support for SMPTE subtitles; fix pragma warnings with non-openmp builds.
Diffstat (limited to 'src/text_node.cc')
| -rw-r--r-- | src/text_node.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/text_node.cc b/src/text_node.cc index aa318ce7..7618c460 100644 --- a/src/text_node.cc +++ b/src/text_node.cc @@ -42,6 +42,7 @@ TextNode::TextNode (boost::shared_ptr<const cxml::Node> node, int tcr, string fo , h_align (HALIGN_CENTER) , v_position (0) , v_align (VALIGN_CENTER) + , direction (DIRECTION_LTR) { text = node->content (); @@ -77,6 +78,11 @@ TextNode::TextNode (boost::shared_ptr<const cxml::Node> node, int tcr, string fo v_align = string_to_valign (va.get ()); } + optional<string> d = node->optional_string_attribute ("Direction"); + if (d) { + direction = string_to_direction (d.get ()); + } + list<cxml::NodePtr> f = node->node_children ("Font"); BOOST_FOREACH (cxml::NodePtr& i, f) { font_nodes.push_back (shared_ptr<FontNode> (new FontNode (i, tcr, font_id_attribute))); |
