From 1c689b3087f83a20871f6017904d1e480b9dd46d Mon Sep 17 00:00:00 2001 From: John Date: Wed, 24 Apr 2013 18:08:23 +0000 Subject: [PATCH] =?UTF-8?q?X/Y=20Plot=20RO=20type=20fix=20=E2=80=93=20spit?= =?UTF-8?q?=20out=20the=20raw=20X/Y=20Plot=20RO=20value=20if=20there=20is?= =?UTF-8?q?=20a=20problem=20and=20continue=20the=20processing=20loop=20ins?= =?UTF-8?q?tead=20of=20returning=20without=20processing=20the=20rest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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