B2022-009: When using a landscape Word attachment, foldout page associated with it has header as landscape

This commit is contained in:
Kathy Ruffing 2022-01-18 13:23:21 +00:00
parent 0acedd7e7a
commit 5ae0fa8b1f

View File

@ -1234,8 +1234,11 @@ namespace Volian.Print.Library
bool didFoldout = false;
if (((mySection.MyDocStyle.StructureStyle.Style ?? 0) & E_DocStructStyle.UseSectionFoldout) != 0)
{
// B2022-009: if doing a foldout & this is a landscape section, turn landscape off for the foldout
if (mySection.MyDocStyle.LandscapePageList) _MyHelper.IsLandscape = false;
didFoldout = true;
DoFoldoutPage(cb, "Word Document", _TextLayer, _MyHelper, 0, false);
if (mySection.MyDocStyle.LandscapePageList) _MyHelper.IsLandscape = true; // B2022-009: turn landscape back on for the foldout
}
if (this.MyReaderHelper != null)
{