From 2d2a58c2a33bb3fc0039960279b64ca4b3057322 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 17 Dec 2019 16:06:01 +0000 Subject: [PATCH] B2019-179: fixed crash when using enter key from first table of two --- PROMS/Volian.Controls.Library/EditItem.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Controls.Library/EditItem.cs b/PROMS/Volian.Controls.Library/EditItem.cs index 803ca3c3..b04c3f91 100644 --- a/PROMS/Volian.Controls.Library/EditItem.cs +++ b/PROMS/Volian.Controls.Library/EditItem.cs @@ -3277,8 +3277,11 @@ namespace Volian.Controls.Library } else if (value.MyItemInfo.IsTablePart) { - ItemLocation = new Point(value.MyParentEditItem.ContentLeft, value.Bottom); - ItemWidth = value.MyParentEditItem.ContentWidth; + // B2019-179: if more than 1 table, get to the first that has the parent: + EditItem cur = (EditItem)value; + while (cur.MyPreviousEditItem != null) cur = cur.MyPreviousEditItem; + ItemLocation = new Point(cur.MyParentEditItem.ContentLeft, cur.Bottom); + ItemWidth = cur.MyParentEditItem.ContentWidth; } else {