From 1e729a7b03c01d114622a9a58a016beb27b50edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20=C5=A0olt=C3=A9s?= Date: Tue, 22 Nov 2022 11:06:25 +0100 Subject: [PATCH] Update EllipseToolViewModel.cs --- src/Core2D/ViewModels/Editor/Tools/EllipseToolViewModel.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Core2D/ViewModels/Editor/Tools/EllipseToolViewModel.cs b/src/Core2D/ViewModels/Editor/Tools/EllipseToolViewModel.cs index 1e201f7dd..3408256a8 100644 --- a/src/Core2D/ViewModels/Editor/Tools/EllipseToolViewModel.cs +++ b/src/Core2D/ViewModels/Editor/Tools/EllipseToolViewModel.cs @@ -229,8 +229,8 @@ public partial class EllipseToolViewModel : ViewModelBase, IEditorTool var editor = ServiceProvider.GetService(); if (editor is { } && editor.Project?.CurrentContainer?.HelperLayer is { } - && _ellipse is { } - && editor.PageState?.HelperStyle is { }) + && editor.PageState?.HelperStyle is { } + && _ellipse is { } ) { _selection = new EllipseSelection( ServiceProvider, @@ -238,7 +238,7 @@ public partial class EllipseToolViewModel : ViewModelBase, IEditorTool _ellipse, editor.PageState.HelperStyle); - _selection?.ToStateBottomRight(); + _selection.ToStateBottomRight(); } }