Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/Operations/OperationMask.cs')
-rw-r--r--UVtools.Core/Operations/OperationMask.cs6
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);
}