From db536bd9f9f16b79286c5f0bb54d0f283050f7dd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 24 Jun 2016 12:12:23 +0100 Subject: Express standard differences in FontNode more neatly. --- src/text_node.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/text_node.cc') diff --git a/src/text_node.cc b/src/text_node.cc index cfd0557f..6a48470d 100644 --- a/src/text_node.cc +++ b/src/text_node.cc @@ -51,7 +51,7 @@ using namespace dcp; * in this object's member variables. * @param node Node to read. */ -TextNode::TextNode (boost::shared_ptr node, optional tcr, string font_id_attribute) +TextNode::TextNode (boost::shared_ptr node, optional tcr, Standard standard) : h_position (0) , h_align (HALIGN_CENTER) , v_position (0) @@ -99,6 +99,6 @@ TextNode::TextNode (boost::shared_ptr node, optional tcr, list f = node->node_children ("Font"); BOOST_FOREACH (cxml::NodePtr& i, f) { - font_nodes.push_back (shared_ptr (new FontNode (i, tcr, font_id_attribute))); + font_nodes.push_back (shared_ptr (new FontNode (i, tcr, standard))); } } -- cgit v1.2.3