1
0
Fork 0

Fix dumb commit for XLIFF approved-attr handling

This commit is contained in:
James Turner 2018-10-13 00:20:38 +01:00
parent 73be50b308
commit 53de09d151

View file

@ -56,9 +56,9 @@ void XLIFFParser::startElement(const char *name, const XMLAttributes &atts)
_source.clear(); _source.clear();
_target.clear(); _target.clear();
std::string as; std::string as = atts.getValue("approved");
if (as.empty()) { if (as.empty()) {
_approved = true; _approved = false;
} else { } else {
_approved = simgear::strutils::to_bool(as); _approved = simgear::strutils::to_bool(as);
} }