diff --git a/src/App/ProjectFile.cpp b/src/App/ProjectFile.cpp index 38cc61f582..bf6ec236d9 100644 --- a/src/App/ProjectFile.cpp +++ b/src/App/ProjectFile.cpp @@ -243,6 +243,9 @@ bool ProjectFile::loadDocument() try { Base::StdInputSource inputSource(*str, stdFile.c_str()); parser->parse(inputSource); + if (parser->getErrorCount() > 0) { + return false; + } xmlDocument = parser->adoptDocument(); return true; }