mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Code cleanup
This commit is contained in:
parent
99f6967620
commit
a37116a0dc
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,6 @@ You should have received a copy of the GNU General Public License
|
||||||
#endregion License Information (GPL v3)
|
#endregion License Information (GPL v3)
|
||||||
|
|
||||||
using ShareX.HelpersLib;
|
using ShareX.HelpersLib;
|
||||||
using System;
|
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
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 IsHorizontalTrim => Rectangle.Width >= Options.MinimumSize && Rectangle.Width > Rectangle.Height;
|
||||||
public bool IsVerticalTrim => Rectangle.Height >= Options.MinimumSize && Rectangle.Height >= Rectangle.Width;
|
public bool IsVerticalTrim => Rectangle.Height >= Options.MinimumSize && Rectangle.Height >= Rectangle.Width;
|
||||||
|
|
||||||
public override bool IsValidShape {
|
public override bool IsValidShape
|
||||||
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (!IsHorizontalTrim && !IsVerticalTrim) return false;
|
if (!IsHorizontalTrim && !IsVerticalTrim) return false;
|
||||||
|
|
Loading…
Reference in a new issue