Fixed logic to support adding a Caution when a Caution exists in Deviation Document Format

This commit is contained in:
Rich 2017-02-17 16:06:16 +00:00
parent 30369c2630
commit e1019e3454

View File

@ -592,7 +592,7 @@ namespace Volian.Controls.Library
_MyNextEditItem = nextEditItem;
nextEditItem._MyPreviousEditItem = this;
MyPreviousEditItem = prevChild;// If a previous exists - this will adjust the location and width of the EditItem
if (!MyItemInfo.ActiveFormat.MyStepSectionLayoutData.Dev_Format || ( nextEditItem.MyItemInfo.IsNote && MyItemInfo.IsCaution))
if (!MyItemInfo.ActiveFormat.MyStepSectionLayoutData.Dev_Format || !( nextEditItem.MyItemInfo.IsNote && MyItemInfo.IsCaution) )
{
// RHM 20170216 For Deviation Document don't set MyParentEditItem to null when Type Changes from Caution to Note
nextEditItem.MyParentEditItem = null;