diff options
Diffstat (limited to 'UVtools.Core/Operations/OperationPattern.cs')
-rw-r--r-- | UVtools.Core/Operations/OperationPattern.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/UVtools.Core/Operations/OperationPattern.cs b/UVtools.Core/Operations/OperationPattern.cs index 432aa95..22398b3 100644 --- a/UVtools.Core/Operations/OperationPattern.cs +++ b/UVtools.Core/Operations/OperationPattern.cs @@ -293,10 +293,7 @@ namespace UVtools.Core.Operations //Execute(mat); SlicerFile[layerIndex].LayerMat = dstLayer; - lock (progress.Mutex) - { - progress++; - } + progress.LockAndIncrement(); }); SlicerFile.LayerManager.BoundingRectangle = Rectangle.Empty; |