aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-02-20 15:08:22 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-02-20 15:08:22 +0200
commit2fe707abce023813d234b57b097a731174fd4a26 (patch)
tree010fd3d915f24c266e9dff119c3b5c3657ae80f8 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views
parent98507ffd2075fcd7ae69d97d4f4795ca8c85c646 (diff)
downloadTango-2fe707abce023813d234b57b097a731174fd4a26.tar.gz
Tango-2fe707abce023813d234b57b097a731174fd4a26.zip
Implemented module popping!
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs
index 5e8a72378..470d98912 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs
@@ -90,7 +90,7 @@ namespace Tango.MachineStudio.Developer.Views
private void UpdateGradientBrushDisplay()
{
- if (_vm.SelectedSegment != null)
+ if (_vm != null && _vm.SelectedSegment != null)
{
SegmentToGradientStopsConverter converter = new SegmentToGradientStopsConverter();
GradientStopCollection stops = converter.Convert(_vm.SelectedSegment, null, null, null) as GradientStopCollection;
@@ -98,7 +98,10 @@ namespace Tango.MachineStudio.Developer.Views
}
else
{
- gradientBrush.GradientStops = new GradientStopCollection();
+ if (gradientBrush != null)
+ {
+ gradientBrush.GradientStops = new GradientStopCollection();
+ }
}
}