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.WPF/Controls/Tools/ToolMoveControl.axaml.cs')
-rw-r--r--UVtools.WPF/Controls/Tools/ToolMoveControl.axaml.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/UVtools.WPF/Controls/Tools/ToolMoveControl.axaml.cs b/UVtools.WPF/Controls/Tools/ToolMoveControl.axaml.cs
index a18fc5f..5e01d2b 100644
--- a/UVtools.WPF/Controls/Tools/ToolMoveControl.axaml.cs
+++ b/UVtools.WPF/Controls/Tools/ToolMoveControl.axaml.cs
@@ -19,8 +19,7 @@ namespace UVtools.WPF.Controls.Tools
{
InitializeComponent();
var roi = App.MainWindow.ROI;
- BaseOperation = new OperationMove(roi.IsEmpty ? App.SlicerFile.LayerManager.BoundingRectangle : roi, (uint)App.MainWindow.LayerCache.Image.Width,
- (uint)App.MainWindow.LayerCache.Image.Height);
+ BaseOperation = new OperationMove(SlicerFile, roi);
Operation.PropertyChanged += (sender, e) =>
{