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.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/UVtools.WPF/Controls/Tools/ToolMoveControl.axaml.cs b/UVtools.WPF/Controls/Tools/ToolMoveControl.axaml.cs
index 03a604e..a18fc5f 100644
--- a/UVtools.WPF/Controls/Tools/ToolMoveControl.axaml.cs
+++ b/UVtools.WPF/Controls/Tools/ToolMoveControl.axaml.cs
@@ -7,7 +7,7 @@ namespace UVtools.WPF.Controls.Tools
public class ToolMoveControl : ToolControl
{
private bool _isMiddleCenterChecked = true;
- public OperationMove Operation { get; }
+ public OperationMove Operation => BaseOperation as OperationMove;
public bool IsMiddleCenterChecked
{
@@ -19,7 +19,7 @@ namespace UVtools.WPF.Controls.Tools
{
InitializeComponent();
var roi = App.MainWindow.ROI;
- BaseOperation = Operation = new OperationMove(roi.IsEmpty ? App.SlicerFile.LayerManager.BoundingRectangle : roi, (uint)App.MainWindow.LayerCache.Image.Width,
+ BaseOperation = new OperationMove(roi.IsEmpty ? App.SlicerFile.LayerManager.BoundingRectangle : roi, (uint)App.MainWindow.LayerCache.Image.Width,
(uint)App.MainWindow.LayerCache.Image.Height);
Operation.PropertyChanged += (sender, e) =>