diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-24 12:12:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-24 12:12:23 +0100 |
| commit | db536bd9f9f16b79286c5f0bb54d0f283050f7dd (patch) | |
| tree | fafae4349032739326592dfaa18d6b499c743f6c /src/text_node.cc | |
| parent | a5bf0e4edbdbf7a0818666313b1d3909986342f1 (diff) | |
Express standard differences in FontNode more neatly.
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 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<const cxml::Node> node, optional<int> tcr, string font_id_attribute) +TextNode::TextNode (boost::shared_ptr<const cxml::Node> node, optional<int> tcr, Standard standard) : h_position (0) , h_align (HALIGN_CENTER) , v_position (0) @@ -99,6 +99,6 @@ TextNode::TextNode (boost::shared_ptr<const cxml::Node> node, optional<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_id_attribute))); + font_nodes.push_back (shared_ptr<FontNode> (new FontNode (i, tcr, standard))); } } |
