Updated it_IT translation from Riccardo Mantani.
[dcpomatic.git] / src / lib / text_content.cc
index c86150881418121b32c59e8d7187d72f6ca3aa18..5ae8dd45eb47724454b6ebd18397e4755ec3dd45 100644 (file)
@@ -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));
@@ -128,7 +124,6 @@ TextContent::TextContent (Content* parent, cxml::ConstNodePtr node, int version)
        , _outline_width (node->optional_number_child<int>("OutlineWidth").get_value_or(4))
        , _type (TextType::OPEN_SUBTITLE)
        , _original_type (TextType::OPEN_SUBTITLE)
-       , _language ("en-US")
 {
        if (version >= 37) {
                _use = node->bool_child ("Use");