summaryrefslogtreecommitdiff
path: root/src/lib/string_text_file_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-09-19 21:45:22 +0200
committerCarl Hetherington <cth@carlh.net>2021-09-19 21:45:22 +0200
commitc7916079e06d985121842962b9736a6673e22dfe (patch)
tree05720c8df69b8a8a27f69cef7152ff24d242cfff /src/lib/string_text_file_content.cc
parentc269ebfdae53a2f5c5e9acc6f6588ebb47eeac9d (diff)
Fix failure to open v2.14.x documents with invalid or empty subtitle languages (#2085).
Diffstat (limited to 'src/lib/string_text_file_content.cc')
-rw-r--r--src/lib/string_text_file_content.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/string_text_file_content.cc b/src/lib/string_text_file_content.cc
index 25d59ec61..2ce343f2e 100644
--- a/src/lib/string_text_file_content.cc
+++ b/src/lib/string_text_file_content.cc
@@ -34,6 +34,7 @@
using std::cout;
+using std::list;
using std::make_shared;
using std::shared_ptr;
using std::string;
@@ -48,11 +49,11 @@ StringTextFileContent::StringTextFileContent (boost::filesystem::path path)
}
-StringTextFileContent::StringTextFileContent (cxml::ConstNodePtr node, int version)
+StringTextFileContent::StringTextFileContent (cxml::ConstNodePtr node, int version, list<string>& notes)
: Content (node)
, _length (node->number_child<ContentTime::Type>("Length"))
{
- text = TextContent::from_xml (this, node, version);
+ text = TextContent::from_xml (this, node, version, notes);
}