From a37116a0dcebabb2fdf8efd227cf5c091675c619 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Wed, 17 Aug 2022 23:42:49 +0200 Subject: [PATCH] Code cleanup --- ShareX.ScreenCaptureLib/Shapes/Tool/CutOutTool.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ShareX.ScreenCaptureLib/Shapes/Tool/CutOutTool.cs b/ShareX.ScreenCaptureLib/Shapes/Tool/CutOutTool.cs index 901b01d8c..1ccb8201a 100644 --- a/ShareX.ScreenCaptureLib/Shapes/Tool/CutOutTool.cs +++ b/ShareX.ScreenCaptureLib/Shapes/Tool/CutOutTool.cs @@ -24,7 +24,6 @@ #endregion License Information (GPL v3) using ShareX.HelpersLib; -using System; using System.Drawing; using System.Windows.Forms; @@ -39,7 +38,8 @@ public class CutOutTool : BaseTool public bool IsHorizontalTrim => Rectangle.Width >= Options.MinimumSize && Rectangle.Width > Rectangle.Height; public bool IsVerticalTrim => Rectangle.Height >= Options.MinimumSize && Rectangle.Height >= Rectangle.Width; - public override bool IsValidShape { + public override bool IsValidShape + { get { if (!IsHorizontalTrim && !IsVerticalTrim) return false;