summaryrefslogtreecommitdiff
path: root/src/text_node.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-29 19:33:09 +0000
committerCarl Hetherington <cth@carlh.net>2015-10-29 19:33:09 +0000
commit914bd98baa57c6f2c117e33b21a9ee3d25d0fdc2 (patch)
tree1a1c540c723566d5c009c4df210195e32e1d833f /src/text_node.cc
parent6dc0cdbd5be3f8f60bd50523501a0bd85666ebda (diff)
Pick up SMPTE subtitle font IDs correctly.
Diffstat (limited to 'src/text_node.cc')
-rw-r--r--src/text_node.cc4
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)));
}
}