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:
parent
262a8c3ad3
commit
1c689b3087
@ -738,7 +738,7 @@ namespace VEPROMS.CSLA.Library
|
||||
// if there is regular text before the plot, then count the number of lines
|
||||
// and adjust the y position accordingly
|
||||
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);
|
||||
y += (float)sel.ParagraphFormat.LineSpacing; // get_Information(LBWdLineSpacing.wdLineSpaceSingle);
|
||||
@ -770,7 +770,10 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user