From 85a6112d2e1eac554cc4cbdfa31cca91d87e6ded Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 15 Apr 2019 10:17:37 +0300 Subject: Implemented catalog importer.. --- .../SideChains/RealTimeGraphX.WPF/Components/GraphAxisControl.cs | 2 +- .../SideChains/RealTimeGraphX.WPF/Surfaces/WpfGraphSurface.cs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/SideChains/RealTimeGraphX.WPF') 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); + } } /// -- cgit v1.3.1