X/Y Plot RO type fix – spit out the raw X/Y Plot RO value if there is a problem and continue the processing loop instead of returning without processing the rest

This commit is contained in:
John Jenko 2013-04-24 18:08:23 +00:00
parent 262a8c3ad3
commit 1c689b3087

View File

@ -738,7 +738,7 @@ namespace VEPROMS.CSLA.Library
// if there is regular text before the plot, then count the number of lines // if there is regular text before the plot, then count the number of lines
// and adjust the y position accordingly // and adjust the y position accordingly
int idx = sel.Text.IndexOf("\r"); int idx = sel.Text.IndexOf("\r");
while ((idx>0) && (idx < sel.Text.Length+1)) while ((idx > 0) && (idx < sel.Text.Length + 1))
{ {
idx = sel.Text.IndexOf("\r", idx + 1); idx = sel.Text.IndexOf("\r", idx + 1);
y += (float)sel.ParagraphFormat.LineSpacing; // get_Information(LBWdLineSpacing.wdLineSpaceSingle); y += (float)sel.ParagraphFormat.LineSpacing; // get_Information(LBWdLineSpacing.wdLineSpaceSingle);
@ -770,7 +770,10 @@ namespace VEPROMS.CSLA.Library
} }
catch (Exception ex) catch (Exception ex)
{ {
return null; // something is wrong with the X/Y plot RO.
// print out the un-processed X/Y plot RO value
sel.Text = val;
//return null;
} }
} }
else else