From 620d5dab428ed3ff5091699253889d8dbc5d23d9 Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 10 May 2023 13:16:43 +0000 Subject: [PATCH] B2023-052: Inconsistent change bar location B2023-052: Beaver Valley - Inconsistent change bar location --- PROMS/Formats/fmtall/BVPS1all.xml | Bin 116734 -> 116842 bytes PROMS/Formats/fmtall/BVPSAtchall.xml | Bin 112366 -> 112434 bytes .../VEPROMS.CSLA.Library/Format/DocStyles.cs | 12 ++++++++++++ PROMS/Volian.Print.Library/vlnParagraph.cs | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/PROMS/Formats/fmtall/BVPS1all.xml b/PROMS/Formats/fmtall/BVPS1all.xml index 866a5c26ff07137cdd886157f5035e19b5d03e66..44d07c8fe4330b9c4681e241a9bde5b7741511ae 100644 GIT binary patch delta 155 zcmey@&;Duxd&3sSrUmkj3`q>d49*N04CxF`42cXy42}#b3|S1e3`z{f37&mFJ$o7E6jL(>f(X&>N7*#-%3$`%kOpl0W)Y^VwH=`a80AN8Ug8%>k delta 82 zcmaDgf&E`Ud&3sSrUlzIau^GkrcbC~jGOMD##p!g(_+R9W{_wM({!F0j2ot3*ucoP keZnfnX?!5jB&O;6wlJnmkBDZ}n*Pq0QDl3-9!4o108G;#4FCWD diff --git a/PROMS/Formats/fmtall/BVPSAtchall.xml b/PROMS/Formats/fmtall/BVPSAtchall.xml index aec35d2b2071d7e532e8b943c2030464d5b6f30b..8e5b0f59be0acb2e29178a5f414634d0c4636807 100644 GIT binary patch delta 116 zcmaF&mTl8JwuUW?dHsrx3`q>d49*N04CxF`42cXy42}#b3|S1e3`z{f3bym _AbsChgBarAdj; + [Category("Location")] + [DisplayName("Absolute change bar adjustment for margin differences")] + [Description("Absolute change bar adjustment for margin differences")] + public float? AbsChgBarAdj + { + get + { + return LazyLoad(ref _AbsChgBarAdj, "@AbsChgBarAdj"); + } + } #endregion #region LeftMargin private LazyLoad _LeftMargin; diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index e2b1124d..5cf697d8 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -5562,6 +5562,10 @@ namespace Volian.Print.Library !itemInfo.IsInRNO)) msgAlign = Element.ALIGN_RIGHT; float coltotwips = col * itemInfo.FormatStepData.Font.CharsToTwips; if (cbd.AbsoluteFixedChangeColumn) coltotwips = col * itemInfo.ActiveFormat.PlantFormat.FormatData.Font.CharsToTwips; + // B2023-052: Beaver Valley - Inconsistent change bar location - used AbsoluteFixedChangeColumn flag, but the LeftMargin + // was still added in, thus sections had different locations for change bar if sections had different left margin. Use + // adjustment, 'AbsChgBarAdj' + coltotwips += itemInfo.MyDocStyle.Layout.AbsChgBarAdj ?? 0; if (itemInfo.IsFigure) coltotwips = col * itemInfo.ActiveFormat.PlantFormat.FormatData.Font.CharsToTwips; return new vlnChangeBar(cb, this, (float)itemInfo.MyDocStyle.Layout.LeftMargin + coltotwips, yoff, msgAlign, myPageHelper.ChangeBarDefinition.MyChangeBarText == PrintChangeBarText.RevNum,