From 6953d5a88b4165c52d61b902aacad19fbc3cd7eb Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 18 Nov 2014 16:47:17 +0000 Subject: [PATCH] BGE: If top section continue message is for a subsection, use parent rather than current section for text. --- PROMS/Volian.Print.Library/vlnParagraph.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index ce01f699..5066a176 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -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;