diff options
Diffstat (limited to 'UVtools.Core/Operations/OperationMask.cs')
-rw-r--r-- | UVtools.Core/Operations/OperationMask.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/UVtools.Core/Operations/OperationMask.cs b/UVtools.Core/Operations/OperationMask.cs index f3571fb..c310ae5 100644 --- a/UVtools.Core/Operations/OperationMask.cs +++ b/UVtools.Core/Operations/OperationMask.cs @@ -41,7 +41,7 @@ namespace UVtools.Core.Operations public override string ValidateInternally() { var sb = new StringBuilder(); - if (Mask is null) + if (!HaveInputMask) { sb.AppendLine("The mask can not be empty."); } @@ -54,7 +54,7 @@ namespace UVtools.Core.Operations [XmlIgnore] public Mat Mask { get; set; } - public bool HaveMask => !(Mask is null); + public bool HaveInputMask => Mask is not null; #endregion #region Constructor @@ -69,7 +69,7 @@ namespace UVtools.Core.Operations public void InvertMask() { - if (!HaveMask) return; + if (!HaveInputMask) return; CvInvoke.BitwiseNot(Mask, Mask); } |