diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-10-29 19:33:09 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-29 19:33:09 +0000 |
| commit | 914bd98baa57c6f2c117e33b21a9ee3d25d0fdc2 (patch) | |
| tree | 1a1c540c723566d5c009c4df210195e32e1d833f /src/text_node.cc | |
| parent | 6dc0cdbd5be3f8f60bd50523501a0bd85666ebda (diff) | |
Pick up SMPTE subtitle font IDs correctly.
Diffstat (limited to 'src/text_node.cc')
| -rw-r--r-- | src/text_node.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text_node.cc b/src/text_node.cc index 666e5846..aa318ce7 100644 --- a/src/text_node.cc +++ b/src/text_node.cc @@ -37,7 +37,7 @@ using namespace dcp; * in this object's member variables. * @param node Node to read. */ -TextNode::TextNode (boost::shared_ptr<const cxml::Node> node, int tcr) +TextNode::TextNode (boost::shared_ptr<const cxml::Node> node, int tcr, string font_id_attribute) : h_position (0) , h_align (HALIGN_CENTER) , v_position (0) @@ -79,6 +79,6 @@ TextNode::TextNode (boost::shared_ptr<const cxml::Node> node, int tcr) 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_nodes.push_back (shared_ptr<FontNode> (new FontNode (i, tcr, font_id_attribute))); } } |
