From 067b6d7b99ea123ecbe12e4e5bdddbcb48228fbe Mon Sep 17 00:00:00 2001 From: Vincent Maas Date: Thu, 26 Nov 2020 22:30:24 +0100 Subject: [PATCH] fix crash on startup when scaling is not 100% --- ColorControl/ColorControl.csproj | 2 +- ColorControl/MainForm.cs | 2 +- ColorControl/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ColorControl/ColorControl.csproj b/ColorControl/ColorControl.csproj index 538a8ba..cd80e32 100644 --- a/ColorControl/ColorControl.csproj +++ b/ColorControl/ColorControl.csproj @@ -27,7 +27,7 @@ ColorControl Maassoft 0 - 1.3.4.0 + 1.3.5.0 false true true diff --git a/ColorControl/MainForm.cs b/ColorControl/MainForm.cs index f70d433..e3baa2c 100644 --- a/ColorControl/MainForm.cs +++ b/ColorControl/MainForm.cs @@ -675,7 +675,7 @@ namespace ColorControl { Hide(); } - else if (WindowState == FormWindowState.Normal) + else if (WindowState == FormWindowState.Normal && _config != null) { _config.FormWidth = Width; _config.FormHeight = Height; diff --git a/ColorControl/Properties/AssemblyInfo.cs b/ColorControl/Properties/AssemblyInfo.cs index 4226cd1..99e6a9c 100644 --- a/ColorControl/Properties/AssemblyInfo.cs +++ b/ColorControl/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.3.4.0")] -[assembly: AssemblyFileVersion("1.3.4.0")] +[assembly: AssemblyVersion("1.3.5.0")] +[assembly: AssemblyFileVersion("1.3.5.0")]