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:
@@ -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--;
|
||||
}
|
||||
|
Reference in New Issue
Block a user