From 8311a2d3c0a09e4706e1eda95b75e17cd3b1e643 Mon Sep 17 00:00:00 2001 From: Souryo Date: Thu, 8 Dec 2016 19:31:04 -0500 Subject: [PATCH] Debugger: Prevent caught exception when minimizing debugger --- GUI.NET/Controls/ctrlSplitContainer.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GUI.NET/Controls/ctrlSplitContainer.cs b/GUI.NET/Controls/ctrlSplitContainer.cs index b34abeae..e75598e5 100644 --- a/GUI.NET/Controls/ctrlSplitContainer.cs +++ b/GUI.NET/Controls/ctrlSplitContainer.cs @@ -124,8 +124,10 @@ namespace Mesen.GUI.Controls this.Panel1.SuspendLayout(); this.Panel2.SuspendLayout(); try { - this.SplitterDistance++; - this.SplitterDistance--; + if(this.Width > 0 && this.Height > 0) { + this.SplitterDistance++; + this.SplitterDistance--; + } } catch { } finally { this.ResumeLayout();