From 03fdd0e6131f14c67299641cfe2369acf66e074e Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 16 Oct 2014 11:42:42 +0000 Subject: [PATCH] Fixed Hanging Indent logic. --- PROMS/DataLoader/Steps.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/DataLoader/Steps.cs b/PROMS/DataLoader/Steps.cs index c4d9142b..ccc34297 100644 --- a/PROMS/DataLoader/Steps.cs +++ b/PROMS/DataLoader/Steps.cs @@ -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