summaryrefslogtreecommitdiff
path: root/src/subtitle_node.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/subtitle_node.cc')
-rw-r--r--src/subtitle_node.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/subtitle_node.cc b/src/subtitle_node.cc
index f53878b6..e221b43b 100644
--- a/src/subtitle_node.cc
+++ b/src/subtitle_node.cc
@@ -31,19 +31,19 @@ using boost::shared_ptr;
using boost::lexical_cast;
using namespace dcp;
-SubtitleNode::SubtitleNode (boost::shared_ptr<const cxml::Node> node, int tcr)
+SubtitleNode::SubtitleNode (boost::shared_ptr<const cxml::Node> node, int tcr, string font_id_attribute)
{
in = Time (node->string_attribute ("TimeIn"), tcr);
out = Time (node->string_attribute ("TimeOut"), tcr);
list<cxml::NodePtr> f = node->node_children ("Font");
for (list<cxml::NodePtr>::iterator i = f.begin(); i != f.end(); ++i) {
- 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)));
}
list<cxml::NodePtr> t = node->node_children ("Text");
for (list<cxml::NodePtr>::iterator i = t.begin(); i != t.end(); ++i) {
- text_nodes.push_back (shared_ptr<TextNode> (new TextNode (*i, tcr)));
+ text_nodes.push_back (shared_ptr<TextNode> (new TextNode (*i, tcr, font_id_attribute)));
}
fade_up_time = fade_time (node, "FadeUpTime", tcr);