aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2022-12-01 19:27:58 +0200
committerRoy <Roy.mail.net@gmail.com>2022-12-01 19:27:58 +0200
commitb0ba401d013b3ff9a338d3f4e048c99169165b40 (patch)
tree2df06fa42943f5ee533b651880d175360b4ae58e /Software/Visual_Studio/PPC/Tango.PPC.Common
parent31f00114c63c0c9af3148755918b610c1cb6b89d (diff)
downloadTango-b0ba401d013b3ff9a338d3f4e048c99169165b40.tar.gz
Tango-b0ba401d013b3ff9a338d3f4e048c99169165b40.zip
Implemented workaround for standard inks reset when using light inks for statistics stop input.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Statistics/DefaultStatisticsService.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Statistics/DefaultStatisticsService.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Statistics/DefaultStatisticsService.cs
index a275d95bb..a98641b25 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Statistics/DefaultStatisticsService.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Statistics/DefaultStatisticsService.cs
@@ -219,6 +219,26 @@ namespace Tango.PPC.Common.Statistics
pbs.Magenta = pbs.LiquidVolumes.First(x => x.LiquidType == LiquidTypes.Magenta).Volume;
pbs.Yellow = pbs.LiquidVolumes.First(x => x.LiquidType == LiquidTypes.Yellow).Volume;
pbs.Black = pbs.LiquidVolumes.First(x => x.LiquidType == LiquidTypes.Black).Volume;
+
+ var lightCyan = pbs.LiquidVolumes.FirstOrDefault(x => x.LiquidType == LiquidTypes.LightCyan);
+ var lightMagenta = pbs.LiquidVolumes.FirstOrDefault(x => x.LiquidType == LiquidTypes.LightMagenta);
+ var lightYellow = pbs.LiquidVolumes.FirstOrDefault(x => x.LiquidType == LiquidTypes.LightYellow);
+
+ if (lightCyan != null && lightCyan.Volume > 0)
+ {
+ pbs.Cyan = lightCyan.Volume / 10d;
+ }
+
+ if (lightMagenta != null && lightMagenta.Volume > 0)
+ {
+ pbs.Magenta = lightMagenta.Volume / 10d;
+ }
+
+ if (lightYellow != null && lightYellow.Volume > 0)
+ {
+ pbs.Yellow = lightYellow.Volume / 10d;
+ }
+
break;
case ColorSpaces.Catalog:
pbs.Catalog = _catalogs.FirstOrDefault(x => x.Guid == stop.ColorCatalogGuid)?.Name;