diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-05-09 22:07:51 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-05-09 22:07:51 +0200 |
| commit | b50a098f422cdb671a67ccb41e2837aa505e405b (patch) | |
| tree | b903e7e82257a2d8fba0ca0b1ea2ea610190e299 /src | |
| parent | 21702cc5f4b0e6fc7114f9fffb118246fbfda2e2 (diff) | |
Remove erroneous call to optional_node_child().
Just after this we loop over all <Text> nodes, and optional_node_child
will raise an exception if there is more than one.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/text_content.cc | 4 |
1 files changed, 0 insertions, 4 deletions
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<TextContent>(parent, node, version) }; } - if (!node->optional_node_child("Text")) { - return {}; - } - list<shared_ptr<TextContent>> c; for (auto i: node->node_children("Text")) { c.push_back (make_shared<TextContent>(parent, i, version)); |
