This commit is contained in:
Wiesław Šoltés 2022-11-22 11:06:18 +01:00
Родитель 95df6b4656
Коммит 58c11c53a3
1 изменённых файлов: 13 добавлений и 12 удалений

Просмотреть файл

@ -306,19 +306,20 @@ public partial class ArcToolViewModel : ViewModelBase, IEditorTool
public void ToStatePoint2()
{
var editor = ServiceProvider.GetService<ProjectEditorViewModel>();
if (editor?.Project?.Options is null)
{
return;
}
_selection = new ArcSelection(
ServiceProvider,
editor.Project.CurrentContainer.HelperLayer,
_arc,
editor.PageState.HelperStyle);
_selection.ToStatePoint2();
if (editor is { }
&& editor.Project?.CurrentContainer?.HelperLayer is { }
&& editor.PageState?.HelperStyle is { }
&& _arc is { })
{
_selection = new ArcSelection(
ServiceProvider,
editor.Project.CurrentContainer.HelperLayer,
_arc,
editor.PageState.HelperStyle);
_selection.ToStatePoint2();
}
}
public void ToStatePoint3()