Fix failure to load projects.
authorCarl Hetherington <cth@carlh.net>
Sat, 21 Jul 2018 21:14:15 +0000 (22:14 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 21 Jul 2018 21:14:15 +0000 (22:14 +0100)
src/lib/caption_content.cc

index 368d276d93abfbc893829206a82cba4d5cf46366..4fa8b678f3337b61452666185780e5b432df15fc 100644 (file)
@@ -99,7 +99,7 @@ CaptionContent::from_xml (Content* parent, cxml::ConstNodePtr node, int version)
                return c;
        }
 
-       if (!node->node_child("Caption")) {
+       if (!node->optional_node_child("Caption")) {
                return list<shared_ptr<CaptionContent> >();
        }