B2022-149: Crash on print of STP procedure that has addendum

This commit is contained in:
Kathy Ruffing 2023-01-11 11:33:31 +00:00
parent d3c015d382
commit 88315010af

View File

@ -1948,7 +1948,8 @@ i = 0;
if (myMsg != null && myMsg != string.Empty)stitle = stitle + myMsg;
}
// B2021-119: large titles on Landscape Word Attachments are printing on 2 lines.
int? stl = (int)section.ActiveFormat.PlantFormat.FormatData.SectData.SectionNumberAndTitleLength;
// B2022-149: crash on cast if null
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;