Added a check for a Figure substep type without an RO reference
This commit is contained in:
parent
5942d14798
commit
cd523e12a6
@ -3281,6 +3281,8 @@ namespace Volian.Print.Library
|
||||
string linkInfoText = itemInfo.MyContent.Text.Replace(@"\v ", "");
|
||||
Match m = Regex.Match(linkInfoText, @"(.*)[#]Link:([A-Za-z]*):(.*)");
|
||||
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)
|
||||
{
|
||||
//erMsg = "RO was not found during data migration.";
|
||||
@ -3305,6 +3307,7 @@ namespace Volian.Print.Library
|
||||
yoff += 2 * SixLinesPerInch;
|
||||
}
|
||||
}
|
||||
}
|
||||
GC.Collect(); // memory garbage collection (Regex memory bug)
|
||||
if (val != null && val != "?")
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user