B2021-119: Large section titles on Landscape Word Attachments are printing on 2 lines

B2021-119: BNPP1 - Large section titles on Landscape Word Attachments are printing on 2 lines
This commit is contained in:
Kathy Ruffing 2021-10-26 13:03:10 +00:00
parent 033df8ccb3
commit 5c44ae607f
3 changed files with 14 additions and 1 deletions

Binary file not shown.

View File

@ -2394,6 +2394,14 @@ namespace VEPROMS.CSLA.Library
return LazyLoad(ref _SectionNumberAndTitleLength, "@SectionNumberAndTitleLength");
}
}
private LazyLoad<int?> _SectNumAndTlLenLand; // B2021-119: large titles on Landscape Word Attachments are printing on 2 lines.
public int? SectNumAndTlLenLand
{
get
{
return LazyLoad(ref _SectNumAndTlLenLand, "@SectNumAndTlLenLand");
}
}
private LazyLoad<string> _ForeColor;
public string ForeColor
{

View File

@ -1861,7 +1861,12 @@ i = 0;
string myMsg = section.MyDocStyle.Continue.Top.Message;
if (myMsg != null && myMsg != "")stitle = stitle + myMsg;
}
plstr = SplitTitle(svgGroup, pageItem, stitle, section.ActiveFormat.PlantFormat.FormatData.SectData.SectionTitleLength, token, plstr, section.ActiveFormat.PlantFormat.FormatData.SectData.SectionNumberAndTitleLength);
// B2021-119: large titles on Landscape Word Attachments are printing on 2 lines.
int? stl = (int)section.ActiveFormat.PlantFormat.FormatData.SectData.SectionNumberAndTitleLength;
if (section.MyDocStyle.LandscapePageList && section.ActiveFormat.PlantFormat.FormatData.SectData.SectNumAndTlLenLand != null)
stl = section.ActiveFormat.PlantFormat.FormatData.SectData.SectNumAndTlLenLand;
plstr = SplitTitle(svgGroup, pageItem, stitle, section.ActiveFormat.PlantFormat.FormatData.SectData.SectionTitleLength, token, plstr, stl);
if ((pageItem.Justify & VEPROMS.CSLA.Library.E_Justify.PSOnlyFirst) == VEPROMS.CSLA.Library.E_Justify.PSOnlyFirst) // B2020-047 only set PrintedSectionPage if PSOnly is used
PrintedSectionPage = (int)pageItem.Row - _sectLevelNumTtlDiff;
}