aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2021-01-06 15:16:42 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2021-01-06 15:16:42 +0200
commitc50e8793fc48afdb53a44ef670860e18f366a70d (patch)
tree5c8e5af13fb370ef3b53b70ca4c5ee3ca64548a1 /Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs
parent88b747af66e4f2cbc62ef4fa42ad17024341d1bb (diff)
downloadTango-c50e8793fc48afdb53a44ef670860e18f366a70d.tar.gz
Tango-c50e8793fc48afdb53a44ef670860e18f366a70d.zip
Restored latest changes !!!
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobsViewVM.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobsViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobsViewVM.cs
index fe831587c..afbce995d 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobsViewVM.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobsViewVM.cs
@@ -537,7 +537,19 @@ namespace Tango.PPC.Jobs.ViewModels
if (colorProfile == null)
{
- job.AddSolidSegment(Settings.DefaultSegmentLength > 0 ? Settings.DefaultSegmentLength : 100);
+ var segment = job.AddSolidSegment(Settings.DefaultSegmentLength > 0 ? Settings.DefaultSegmentLength : 100);
+
+ try
+ {
+ if (vm.SelectedColorSpace == ColorSpaces.Catalog)
+ {
+ segment.BrushStops[0].ColorCatalogGuid = catalogVM.SelectedCatalog.Guid;
+ }
+ }
+ catch (Exception ex)
+ {
+ LogManager.Log(ex, $"Error setting first segment brush stop color catalog guide.");
+ }
}
else
{