diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-03-20 13:13:52 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-03-20 13:13:52 +0200 |
| commit | 88ac356fd2d30e016bb884697e7b67f8ede51d2b (patch) | |
| tree | 37566213026964e30229c21474f1bd148fe8e695 /Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | |
| parent | 5881b11e25a34acc0230f5316db5783389afe18f (diff) | |
| download | Tango-88ac356fd2d30e016bb884697e7b67f8ede51d2b.tar.gz Tango-88ac356fd2d30e016bb884697e7b67f8ede51d2b.zip | |
Fixed issue with PPC "add job" button hiding the "delete job" button.
Removed message box on error in color lab module.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index 4a2ecc9f0..9dab6cd65 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -1101,14 +1101,16 @@ namespace Tango.Integration.Operation /// <returns></returns> public Task<JobHandler> Print(Job job) { + var jobSegments = job.OrderedSegments; + //Check not brush stop has color space 'Volume'. - if (job.Segments.SelectMany(x => x.BrushStops).ToList().Exists(x => x.ColorSpace.Code == ColorSpaces.Volume.ToInt32())) + if (jobSegments.SelectMany(x => x.BrushStops).ToList().Exists(x => x.ColorSpace.Code == ColorSpaces.Volume.ToInt32())) { throw new InvalidOperationException("Cannot print a brush stop with volume color space when process parameters table has not been specified."); } //Get least common process parameters table index. - int processParametersTableIndex = TangoColorConverter.GetLeastCommonProcessParametersTableIndex(job.Segments.SelectMany(x => x.BrushStops)); + int processParametersTableIndex = TangoColorConverter.GetLeastCommonProcessParametersTableIndex(jobSegments.SelectMany(x => x.BrushStops)); if (job.Rml == null) { @@ -1130,7 +1132,7 @@ namespace Tango.Integration.Operation } //Perform color correction - foreach (var stop in job.Segments.SelectMany(x => x.BrushStops)) + foreach (var stop in jobSegments.SelectMany(x => x.BrushStops)) { if (stop.LiquidVolumes == null) { |
