Fixed Hanging Indent logic.

This commit is contained in:
Rich 2014-10-16 11:42:42 +00:00
parent 933d9155c7
commit 03fdd0e613

View File

@ -48,7 +48,7 @@ namespace DataLoader
tok = Textm.IndexOfAny(chrarr);
// This will find a continuous action flag without finding a hanging indent
if (tok == -1 && Textm[Textm.Length - 1] == '\x5')
if (tok == -1 && Textm.Length > 0 && Textm[Textm.Length - 1] == '\x5')
tok = Textm.Length - 1;
// if this is bge, handle some special cases for bold/underline next that were not