From da669922e69a95654dcbcdd7c7fdafe0c4de0a77 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Sun, 27 Aug 2023 17:20:54 +0300 Subject: Correct K < 0.5 during VFT. Related Work Items: #7959 --- .../Modules/Tango.PPC.JobsV2/Dialogs/VectorFineTuningDialogVM.cs | 7 +++++++ .../PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs | 4 ++++ 2 files changed, 11 insertions(+) (limited to 'Software/Visual_Studio/PPC') diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/VectorFineTuningDialogVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/VectorFineTuningDialogVM.cs index b9149b81f..3914a8b1b 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/VectorFineTuningDialogVM.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/VectorFineTuningDialogVM.cs @@ -818,6 +818,12 @@ namespace Tango.PPC.Jobs.Dialogs TargetB = brushstop.B; TargetA = brushstop.A; BrushStopModel.ConvertColorToVolume(); + if (BrushStopModel.Black > 0 && BrushStopModel.Black < 0.5) + { + BrushStopModel.PreventPropertyUpdate = true; + BrushStopModel.Black = 0; + BrushStopModel.PreventPropertyUpdate = false; + } BrushStopModel.ColorSpace = ColorSpaces.LAB; IsOnlyManual = false; } @@ -828,6 +834,7 @@ namespace Tango.PPC.Jobs.Dialogs Magenta = BrushStopModel.Magenta; Yellow = BrushStopModel.Yellow; Black = BrushStopModel.Black; + MeasuredL = MeasuredB = MeasuredA = null; TestColor = null; diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs index 5464aa5ed..a6e7af170 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs @@ -1558,6 +1558,10 @@ namespace Tango.PPC.Jobs.Models _yellow = (output.SingleCoordinates.OutputLiquids.SingleOrDefault(x => x.LiquidType == PMR.ColorLab.LiquidType.Yellow).Volume); _magenta = (output.SingleCoordinates.OutputLiquids.SingleOrDefault(x => x.LiquidType == PMR.ColorLab.LiquidType.Magenta).Volume); _black = (output.SingleCoordinates.OutputLiquids.SingleOrDefault(x => x.LiquidType == PMR.ColorLab.LiquidType.Black).Volume); + if(_black > 0 && _black < 0.5)//bug 7959 0.001 < K% < 0.5 ==> reset the K to 0. + { + _black = 0; + } IsOutOfGamut = output.OutOfGamut; if(IsOutOfGamut) { -- cgit v1.3.1