mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-25 02:01:28 -05:00
wpf: Add a TerminalControlSize emptiness check (#8906)
Watson reports show that an "ArgumentException" is being thrown due to `renderSize` not being valid. Added a check for renderSize before attempting to resize.
This commit is contained in:
@@ -138,7 +138,7 @@ namespace Microsoft.Terminal.Wpf
|
||||
|
||||
NativeMethods.TerminalSetTheme(this.terminal, theme, fontFamily, fontSize, (int)dpiScale.PixelsPerInchX);
|
||||
|
||||
if (!this.RenderSize.IsEmpty)
|
||||
if (!this.RenderSize.IsEmpty && !this.TerminalControlSize.IsEmpty)
|
||||
{
|
||||
this.Resize(this.TerminalControlSize);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user