aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/SideChains
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-04-15 10:17:37 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-04-15 10:17:37 +0300
commit85a6112d2e1eac554cc4cbdfa31cca91d87e6ded (patch)
tree602c713a6f115270c5a0bee0ec5e75ec6145052e /Software/Visual_Studio/SideChains
parent34d86579a1f4e3842566b3dd187f9fa5f3838d07 (diff)
downloadTango-85a6112d2e1eac554cc4cbdfa31cca91d87e6ded.tar.gz
Tango-85a6112d2e1eac554cc4cbdfa31cca91d87e6ded.zip
Implemented catalog importer..
Diffstat (limited to 'Software/Visual_Studio/SideChains')
-rw-r--r--Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/Components/GraphAxisControl.cs2
-rw-r--r--Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/Surfaces/WpfGraphSurface.cs5
2 files changed, 5 insertions, 2 deletions
diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/Components/GraphAxisControl.cs b/Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/Components/GraphAxisControl.cs
index ea96a5a98..ef8dd4a3a 100644
--- a/Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/Components/GraphAxisControl.cs
+++ b/Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/Components/GraphAxisControl.cs
@@ -134,7 +134,7 @@ namespace RealTimeGraphX.WPF.Components
{
if (Orientation == Orientation.Vertical)
{
- if (Items != null)
+ if (Items != null && e.Minimum != null && e.Maximum != null)
{
var steps = e.Minimum.CreateRange(e.Minimum, e.Maximum, Ticks).Reverse().ToList();
diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/Surfaces/WpfGraphSurface.cs b/Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/Surfaces/WpfGraphSurface.cs
index 5057949f0..1ff65f34b 100644
--- a/Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/Surfaces/WpfGraphSurface.cs
+++ b/Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/Surfaces/WpfGraphSurface.cs
@@ -399,7 +399,10 @@ namespace RealTimeGraphX.WPF.Surfaces
Input.ConnectOutput(this, true);
}
- OnSurfaceSizeChanged(_grid.ActualWidth, _grid.ActualHeight);
+ if (_grid != null)
+ {
+ OnSurfaceSizeChanged(_grid.ActualWidth, _grid.ActualHeight);
+ }
}
/// <summary>