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

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

bugfix: saving vtp job: use correct file version number

parent a761b2bd
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,8 @@ public class JSONFileWriter : IOutputFileWriter
private const int VectoJobFormatVersion = 5;
private const int VectoVTPJobFormatVersion = 4;
private static JSONFileWriter _instance;
public const string VECTOvers = "3";
......@@ -451,14 +453,14 @@ public class JSONFileWriter : IOutputFileWriter
public void SaveJob(IVTPDeclarationInputDataProvider input, string filename, bool DeclMode)
{
var header = GetHeader(VectoJobFormatVersion);
var header = GetHeader(VectoVTPJobFormatVersion);
var body = SaveVTPJob(input.JobInputData, filename, true);
WriteFile(header, body, filename);
}
public void SaveJob(IVTPEngineeringInputDataProvider input, string filename, bool DeclMode)
{
var header = GetHeader(VectoJobFormatVersion);
var header = GetHeader(VectoVTPJobFormatVersion);
var body = SaveVTPJob(input.JobInputData, filename, false);
WriteFile(header, body, filename);
}
......
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