From 53de09d15175776cc8540c1aaa8ee21ba40e6019 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 13 Oct 2018 00:20:38 +0100 Subject: [PATCH] Fix dumb commit for XLIFF approved-attr handling --- src/Main/XLIFFParser.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main/XLIFFParser.cxx b/src/Main/XLIFFParser.cxx index 5e34cdbcc..9e4ede4e8 100644 --- a/src/Main/XLIFFParser.cxx +++ b/src/Main/XLIFFParser.cxx @@ -56,9 +56,9 @@ void XLIFFParser::startElement(const char *name, const XMLAttributes &atts) _source.clear(); _target.clear(); - std::string as; + std::string as = atts.getValue("approved"); if (as.empty()) { - _approved = true; + _approved = false; } else { _approved = simgear::strutils::to_bool(as); }