B2016-222 fixed calculation of box height for notes and cautions at a section level

Added a check to prevent an index out of range error
This commit is contained in:
2016-10-04 19:13:11 +00:00
parent aa3be25330
commit 454697efdf
2 changed files with 4 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ namespace Volian.Print.Library
{
if ("0123456789".Contains(Text[(int)_TabAlign].ToString()))
{
while ("0123456789".Contains(Text[(int)_TabAlign].ToString()))
while (_TabAlign < Text.Length && "0123456789".Contains(Text[(int)_TabAlign].ToString()))
_TabAlign++;
_TabAlign--;
}