Added a check for a Figure substep type without an RO reference

This commit is contained in:
John Jenko 2016-05-13 19:00:58 +00:00
parent 5942d14798
commit cd523e12a6

View File

@ -3281,6 +3281,8 @@ namespace Volian.Print.Library
string linkInfoText = itemInfo.MyContent.Text.Replace(@"\v ", ""); string linkInfoText = itemInfo.MyContent.Text.Replace(@"\v ", "");
Match m = Regex.Match(linkInfoText, @"(.*)[#]Link:([A-Za-z]*):(.*)"); Match m = Regex.Match(linkInfoText, @"(.*)[#]Link:([A-Za-z]*):(.*)");
string val = null; string val = null;
if (m.Length > 0) // if m.lengh is zero, then no match was found - no RO was entered in the figure substep
{
if (m.Groups.Count < 4) if (m.Groups.Count < 4)
{ {
//erMsg = "RO was not found during data migration."; //erMsg = "RO was not found during data migration.";
@ -3305,6 +3307,7 @@ namespace Volian.Print.Library
yoff += 2 * SixLinesPerInch; yoff += 2 * SixLinesPerInch;
} }
} }
}
GC.Collect(); // memory garbage collection (Regex memory bug) GC.Collect(); // memory garbage collection (Regex memory bug)
if (val != null && val != "?") if (val != null && val != "?")
{ {