From 970ba90c35faddb36796f1948bf718faed1c7cef Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 2 Feb 2016 16:41:01 +0000 Subject: [PATCH] =?UTF-8?q?B2016-001:=20Don=E2=80=99t=20crash=20when=20del?= =?UTF-8?q?eting=20a=20section=20in=20editor=20with=20transition=20link=20?= =?UTF-8?q?errors=20&=20select=20=E2=80=98No=E2=80=99=20to=20not=20get=20p?= =?UTF-8?q?laced=20on=20sub-steps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Controls.Library/StepPanel.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PROMS/Volian.Controls.Library/StepPanel.cs b/PROMS/Volian.Controls.Library/StepPanel.cs index bdf54274..4bb45f09 100644 --- a/PROMS/Volian.Controls.Library/StepPanel.cs +++ b/PROMS/Volian.Controls.Library/StepPanel.cs @@ -495,6 +495,11 @@ namespace Volian.Controls.Library } float oldTop = lastEI.Top; EditItem newFocus = lastEI.DeleteItem(); + if (newFocus == null) + { + lastEI.RefreshContent(); + return; + } float newTop = newFocus.Top; lastEI.Dispose(); newFocus.SetAllTabs();