Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit a45c569a authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

vecto3gui: fix setting correct execution mode for declaration jobs.

parent e6e4a97c
No related branches found
No related tags found
No related merge requests found
...@@ -913,11 +913,12 @@ namespace VECTO3GUI.ViewModel.Impl ...@@ -913,11 +913,12 @@ namespace VECTO3GUI.ViewModel.Impl
var rootNode = xdoc.Root?.Name.LocalName ?? ""; var rootNode = xdoc.Root?.Name.LocalName ?? "";
if (XMLNames.VectoInputEngineering.Equals(rootNode, StringComparison.InvariantCultureIgnoreCase)) { if (XMLNames.VectoInputEngineering.Equals(rootNode, StringComparison.InvariantCultureIgnoreCase)) {
input = xmlReader.CreateEngineering(fullFileName); input = xmlReader.CreateEngineering(fullFileName);
mode = ExecutionMode.Engineering;
} else if (XMLNames.VectoInputDeclaration.Equals(rootNode, StringComparison.InvariantCultureIgnoreCase)) { } else if (XMLNames.VectoInputDeclaration.Equals(rootNode, StringComparison.InvariantCultureIgnoreCase)) {
using (var reader = XmlReader.Create(fullFileName)) { using (var reader = XmlReader.Create(fullFileName)) {
input = xmlReader.CreateDeclaration(reader); input = xmlReader.CreateDeclaration(reader);
} }
mode = ExecutionMode.Engineering; mode = ExecutionMode.Declaration;
} }
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment