From aad9f0e8502c57f18ba4756e646c667c6160fd6b Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 18 Jun 2014 12:41:22 +0000 Subject: [PATCH] Some ROs use special character 0xF8 rather than 0xB0 for the degree character. This change allows these ROs to print properly when used in MSWord sections. --- PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index 752efc4f..4175c90e 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -740,6 +740,7 @@ namespace VEPROMS.CSLA.Library { string xyplot = selxy.Text; xyplot = xyplot.Replace("`", "\xB0"); + xyplot = xyplot.Replace("\xF8", "\xB0"); // The 16bit code must have kept the carriage returns in the word doc, if there // are carriage returns in the plot language. Count number of carriage return/newlines // so that they can be added back. @@ -863,6 +864,7 @@ namespace VEPROMS.CSLA.Library try { val = val.Replace("`", "\xB0"); + val = val.Replace("\xF8", "\xB0"); // An X/Y Plot RO type might have text preceding the Plot Commands int pstart = val.IndexOf("<