B2020-154: Incorrect top continue message tab in RNO column if for substep with a Caution/Note

This commit is contained in:
Kathy Ruffing 2020-11-18 17:08:46 +00:00
parent 0abcfd1bdf
commit afcfe40136

View File

@ -2683,7 +2683,14 @@ namespace Volian.Print.Library
while (ip.IsRNOPart) ip = ip.MyParent;
myMsg = myMsg.Replace(@"%sR", ip.CombinedTab);
}
// B2020-154: Incorrect top continue message tab in RNO column if for substep with a Caution/Note
else if ((MyItemInfo.IsNote || MyItemInfo.IsCaution) && (MyItemInfo.MyParent.IsRNOPart || MyItemInfo.MyParent.MyParent.IsRNOPart))
{
if (DebugPagination.IsOpen) DebugPagination.WriteLine("***===>,'Yes','Changed RNO Continue Message',{0},{1},,{3},'{4}'", MyItemInfo.ItemID, YSize, 0, 0, this);
ItemInfo ip = MyItemInfo.MyParent;
while (!ip.IsRNOPart) ip = ip.MyParent;
myMsg = myMsg.Replace(@"%sR", ip.CombinedTab);
}
else
myMsg = myMsg.Replace(@"%sR", MyItemInfo.MyParent.CombinedTab);
float xor = MyTopRNO.MyTab.XOffset;