X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Ftext_content.cc;h=5ae8dd45eb47724454b6ebd18397e4755ec3dd45;hp=4ba2de348d076c79aee657aac4b79086bab60e4b;hb=b50a098f422cdb671a67ccb41e2837aa505e405b;hpb=21702cc5f4b0e6fc7114f9fffb118246fbfda2e2 diff --git a/src/lib/text_content.cc b/src/lib/text_content.cc index 4ba2de348..5ae8dd45e 100644 --- a/src/lib/text_content.cc +++ b/src/lib/text_content.cc @@ -104,10 +104,6 @@ TextContent::from_xml (Content* parent, cxml::ConstNodePtr node, int version) return { make_shared(parent, node, version) }; } - if (!node->optional_node_child("Text")) { - return {}; - } - list> c; for (auto i: node->node_children("Text")) { c.push_back (make_shared(parent, i, version));