diff options
Diffstat (limited to 'UVtools.Core/Operations/OperationInfill.cs')
-rw-r--r-- | UVtools.Core/Operations/OperationInfill.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/UVtools.Core/Operations/OperationInfill.cs b/UVtools.Core/Operations/OperationInfill.cs index 745750e..b07ba06 100644 --- a/UVtools.Core/Operations/OperationInfill.cs +++ b/UVtools.Core/Operations/OperationInfill.cs @@ -135,11 +135,8 @@ namespace UVtools.Core.Operations using var mat = SlicerFile[layerIndex].LayerMat; Execute(mat, layerIndex); SlicerFile[layerIndex].LayerMat = mat; - - lock (progress.Mutex) - { - progress++; - } + + progress.LockAndIncrement(); }); return !progress.Token.IsCancellationRequested; |