diff options
Diffstat (limited to 'UVtools.Core/Operations/OperationRepairLayers.cs')
-rw-r--r-- | UVtools.Core/Operations/OperationRepairLayers.cs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/UVtools.Core/Operations/OperationRepairLayers.cs b/UVtools.Core/Operations/OperationRepairLayers.cs index 68c84b0..f1824b6 100644 --- a/UVtools.Core/Operations/OperationRepairLayers.cs +++ b/UVtools.Core/Operations/OperationRepairLayers.cs @@ -182,10 +182,7 @@ namespace UVtools.Core.Operations bytes[image.GetPixelPos(issuePixel)] = 0; } - lock (progress.Mutex) - { - progress++; - } + progress.LockAndIncrement(); } var nextLayerIndex = group.Key + 1; @@ -287,10 +284,7 @@ namespace UVtools.Core.Operations image.Dispose(); } - lock (progress.Mutex) - { - progress++; - } + progress.LockAndIncrement(); }); } |