B2024-037 - Fixes made for replacing procs and steps via paste/replace functionality.
This commit is contained in:
@@ -1825,8 +1825,17 @@ namespace Volian.Controls.Library
|
||||
EditItem newFocus = null;
|
||||
EditItem nextEditItem = MyNextEditItem;
|
||||
EditItem prevEditItem = MyPreviousEditItem;
|
||||
if (MyStepPanel?.SelectedEditItem?.ActiveParent == null) return null; //Was causing an error when active parent was null and the replaced proc was opened in the editor.
|
||||
EditItem parentEditItem = ActiveParent;
|
||||
EditItem parentEditItem = null; // ActiveParent;
|
||||
try
|
||||
{
|
||||
parentEditItem = ActiveParent ?? MyStepPanel?.SelectedEditItem?.ActiveParent;
|
||||
}
|
||||
catch (NullReferenceException)
|
||||
{
|
||||
// Handle the case where ActiveParent throws a NullReferenceException
|
||||
parentEditItem = MyStepPanel?.SelectedEditItem?.ActiveParent;
|
||||
}
|
||||
//EditItem parentEditItem = MyStepPanel?.SelectedEditItem?.ActiveParent; // ActiveParent;
|
||||
|
||||
StepConfig savOrigPasteConfig = MyItemInfo.MyConfig as StepConfig;
|
||||
int TopMostYBefore = TopMostEditItem.Top;
|
||||
|
Reference in New Issue
Block a user