From 6bc8f2ee9def34b290525ead6c2b3834c6b10946 Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 23 Jul 2018 14:29:03 +0000 Subject: [PATCH] =?UTF-8?q?C0218-022:=20If=20tab=20is=20too=20long,=20move?= =?UTF-8?q?=20text=20xoffset=20over=20for=20SAMG=20Supplemental=20Info=20(?= =?UTF-8?q?previous=20fix=20didn=E2=80=99t=20work=20on=20longer=20tabs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 6d4b1a1c..a6ec0e93 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -5591,7 +5591,8 @@ namespace Volian.Print.Library float mytbwidth = myTab.Width; myTab.Width = 2.5f * myTab.Width; // C2018-022: adjust xoffset of text by 12 if the tab would overwrite the text and the format flag is on: - if (itemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SupInfoAdjustXOffForLongTab && myTab.XOffset + mytbwidth > XOffset) XOffset += 12; + if (itemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SupInfoAdjustXOffForLongTab && ((myTab.XOffset + mytbwidth + 12) > XOffset)) + XOffset = 12F + myTab.XOffset + mytbwidth; } // B2017-102: need to set width here since using Xoffset because AdjustWidth is called before this adjustment. Width = (float)itemInfo.MyDocStyle.Layout.PageWidth - XOffset - (sitabloc / 2);