SAMG Supplemental Information Facing pages

Create property versus variable for facing pages (prevents possible null crash)
This commit is contained in:
Kathy Ruffing 2017-07-05 13:48:40 +00:00
parent 3f31210ccf
commit 28a7d8e8ed
4 changed files with 6 additions and 3 deletions

Binary file not shown.

Binary file not shown.

View File

@ -6935,7 +6935,11 @@ namespace VEPROMS.CSLA.Library
private List<int> _StepSectPageBreaks = null;
public List<int> StepSectPageBreaks
{
get { return _StepSectPageBreaks; }
get
{
if (_StepSectPageBreaks == null) _StepSectPageBreaks = new List<int>();
return _StepSectPageBreaks;
}
set { _StepSectPageBreaks = value; }
}
// Determine if this section contains any Supplemental information steps. This is used for print to determine

View File

@ -1623,8 +1623,7 @@ namespace Volian.Print.Library
{
if (section.StepSectPageBreaksForSupInfo == null) section.StepSectPageBreaksForSupInfo = new List<int>();
else section.StepSectPageBreaksForSupInfo.Clear();
if (section.StepSectPageBreaks == null) section.StepSectPageBreaks = new List<int>();
else section.StepSectPageBreaks.Clear();
section.StepSectPageBreaks.Clear();
}
// 792: 72 * 11 inches - TopRow - Top is high value
float _PointsPerPage = 792;