diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index 82eb1476..6d52595d 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -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