B2019-179: fixed crash when using enter key from first table of two

This commit is contained in:
Kathy Ruffing 2019-12-17 16:06:01 +00:00
parent ca63cfcce0
commit 2d2a58c2a3

View File

@ -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
{