From 73143c199c7b16b720eec71289cb8ba8d9f8ddec Mon Sep 17 00:00:00 2001 From: John Date: Wed, 4 Mar 2015 20:13:28 +0000 Subject: [PATCH] Fixed text position of a bulleted substep off of a TitleWithTextRight substep (IP2 Enhanced Backgrounds) --- PROMS/Volian.Print.Library/vlnParagraph.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 0ca42bb5..198a3a90 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -4183,6 +4183,13 @@ namespace Volian.Print.Library else if (itemInfo.MyParent.FormatStepData != null && itemInfo.MyParent.FormatStepData.Type == "TitleWithTextRight") { XOffset = MyParent.MyParent.XOffset; + // if the step text has a tab, then we need to position the tab to the XOffset and then ajust the text XOffset + // by the length of the tab. - fix for IP2 backgrounds (ex. 2-ECA-3.3, step 6) + if (myTab != null) + { + myTab.XOffset = XOffset; + XOffset += (myTab.Text.Length * myTab.MyFont.CharsToTwips);//myTab.Width - myTab.XOffset; + } return; } if (itemInfo.IsHigh)