diff options
Diffstat (limited to 'UVtools.WPF/Controls/Tools/ToolPatternControl.axaml.cs')
-rw-r--r-- | UVtools.WPF/Controls/Tools/ToolPatternControl.axaml.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UVtools.WPF/Controls/Tools/ToolPatternControl.axaml.cs b/UVtools.WPF/Controls/Tools/ToolPatternControl.axaml.cs index cb29ad4..319ec32 100644 --- a/UVtools.WPF/Controls/Tools/ToolPatternControl.axaml.cs +++ b/UVtools.WPF/Controls/Tools/ToolPatternControl.axaml.cs @@ -21,7 +21,7 @@ namespace UVtools.WPF.Controls.Tools { InitializeComponent(); var roi = App.MainWindow.ROI; - BaseOperation = new OperationPattern(roi.IsEmpty ? App.SlicerFile.LayerManager.BoundingRectangle : roi, App.SlicerFile.Resolution); + BaseOperation = new OperationPattern(SlicerFile, roi); if (Operation.MaxRows < 2 && Operation.MaxCols < 2) { |