aboutsummaryrefslogtreecommitdiffstats
path: root/Software
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2021-01-05 17:25:46 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2021-01-05 17:25:46 +0200
commit89362e80c31118e6da63c8d0a0a98e201dbd2a72 (patch)
treeebcf999b92252c49db677b6535c3f03a02ba09f0 /Software
parent0567570ce97b80f264c7b9f4a632b99eb80c1a17 (diff)
downloadTango-89362e80c31118e6da63c8d0a0a98e201dbd2a72.tar.gz
Tango-89362e80c31118e6da63c8d0a0a98e201dbd2a72.zip
Assign job first brush stop to catalog type of job..
Diffstat (limited to 'Software')
-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
{