Skip to content

Commit

Permalink
Update src/Bonsai.Gui.ZedGraph/BoundedGraphPanel.cs
Browse files Browse the repository at this point in the history
Co-authored-by: glopesdev <[email protected]>
  • Loading branch information
ncguilbeault and glopesdev authored Apr 19, 2024
1 parent 54bee01 commit a2b4bee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Bonsai.Gui.ZedGraph/BoundedGraphPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ public int Capacity

protected override void OnInvalidated(InvalidateEventArgs e)
{
if (!(GraphPane is null))
if (GraphPane == null)
{
return;
}
{
double? maxValue = null;
var curveList = GraphPane.CurveList;
Expand Down

0 comments on commit a2b4bee

Please sign in to comment.