Code cleanup

This commit is contained in:
Niels Martin Hansen 2022-08-17 23:42:49 +02:00
parent 99f6967620
commit a37116a0dc

View file

@ -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;