From b13b6799cfe8d52e13ad6b20156bb1e82a57f034 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 8 Jul 2014 11:11:27 +0000 Subject: [PATCH] BGE: Fix code to widen RNO column widths for two column step sections --- PROMS/Volian.Print.Library/vlnParagraph.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 39a03596..b5f0ce5e 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -1747,7 +1747,7 @@ namespace Volian.Print.Library if (itemInfo.IsInRNO) { XOffset = MyTopRNO.MyTab != null ? MyTopRNO.MyTab.XOffset : MyTopRNO.XOffset; - Width = MyTopRNO.Width + (MyTopRNO.MyTab != null ? MyTopRNO.MyTab.Width : 0); + Width = (float)itemInfo.MyDocStyle.Layout.PageWidth - XOffset - 10; // subtract 10 (about a character) so it doesn't touch line } else { @@ -3264,6 +3264,7 @@ namespace Volian.Print.Library float rnoOffset = (float)itemInfo.MyDocStyle.Layout.LeftMargin + (float)itemInfo.MyDocStyle.CenterLineX + 5; float tPtPerChar = itemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.TabPtsPerChar ?? 6; XOffset = rnoOffset + tPtPerChar * adj; + Width = (float)itemInfo.MyDocStyle.Layout.PageWidth - XOffset - 11; // 11 is about size of char, so don't touch right line. if (myTab != null) myTab.XOffset = rnoOffset; } // if the step is within the rno and we're numbering the high level rno, we've got to account for the