BGE: If top section continue message is for a subsection, use parent rather than current section for text.
This commit is contained in:
parent
ce45eab51c
commit
6953d5a88b
@ -1392,8 +1392,10 @@ namespace Volian.Print.Library
|
||||
secContinueTabWidth = fndTopSect.MyTab.Width;
|
||||
secContinueXoff = fndTopSect.XOffset;
|
||||
}
|
||||
|
||||
sectContPara = new vlnParagraph(MyParent.MyParent, cb, MyItemInfo.ActiveSection, MyParent.XOffset, 0, 0, 0, MyParent.MyItemInfo.ActiveFormat, null, (contMsg == null || contMsg == "") ? " (Continued)" : contMsg, 0, false,null);
|
||||
// get to the correct section for the message, i.e. if on a section, the message should be the parent
|
||||
// section (not the activesection which is myself); if on a step, the message should be the active section
|
||||
ItemInfo sectForCont = MyItemInfo.IsSection && MyItemInfo.MyParent.IsSection ? MyItemInfo.MyParent : MyItemInfo.ActiveSection;
|
||||
sectContPara = new vlnParagraph(MyParent.MyParent, cb, sectForCont, MyParent.XOffset, 0, 0, 0, MyParent.MyItemInfo.ActiveFormat, null, (contMsg == null || contMsg == "") ? " (Continued)" : contMsg, 0, false,null);
|
||||
if (sectContPara.PartsLeft.Count > 0)
|
||||
{
|
||||
vlnTab vt = sectContPara.MyTab;
|
||||
|
Loading…
x
Reference in New Issue
Block a user