diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 44743e02..e5ff8ce8 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -1938,6 +1938,7 @@ namespace Volian.Print.Library // For Checklist, the substeps are in rows of data. The YBottomMost is the bottom most for // the row. if (savCheckListBottomMost != 0) YBottomMost = Math.Max(savCheckListBottomMost, YBottomMost); + if (XOffsetCenter != null) XOffset = (float)XOffsetCenter; } private vlnParagraph FindParentRNO() @@ -2631,6 +2632,13 @@ namespace Volian.Print.Library return _ChildrenLeft; } } + private float? _XOffsetCenter = null; + + public float? XOffsetCenter + { + get { return _XOffsetCenter; } + set { _XOffsetCenter = value; } + } public void AdjustXOffsetForTab(ItemInfo itemInfo, int maxRNO, FormatInfo formatInfo, vlnTab myTab, float xMetaAdj) { float tabWidth = (myTab == null) ? 0 : myTab.Width; @@ -2659,7 +2667,7 @@ namespace Volian.Print.Library { float hdrWidth = itemInfo.MyContent.Text.Length * 6; float ctr = (((float)itemInfo.MyDocStyle.Layout.PageWidth - (float)itemInfo.MyDocStyle.Layout.LeftMargin)) / 2; - XOffset = (float)itemInfo.MyDocStyle.Layout.LeftMargin + ctr - (hdrWidth / 2); + XOffsetCenter = (float)itemInfo.MyDocStyle.Layout.LeftMargin + ctr - (hdrWidth / 2); } return; }