diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index b1e2b9ee..a74619ad 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -699,7 +699,7 @@ namespace VEPROMS.CSLA.Library ROFSTLookup lookup = null; string igPrefix = null; string spPrefix = null; - + bool convertCaretToDeltaSymbol = sect.MyActiveSection.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta; if (dvi.DocVersionAssociationCount > 0) { hasRos = true; @@ -755,6 +755,9 @@ namespace VEPROMS.CSLA.Library string xyplot = selxy.Text; xyplot = xyplot.Replace("`", "\xB0"); xyplot = xyplot.Replace("\xF8", "\xB0"); + if (convertCaretToDeltaSymbol) + xyplot = xyplot.Replace("^", "\x394"); // delta + xyplot = xyplot.Replace("\x7F", "\x394"); //delta // 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. @@ -895,6 +898,9 @@ namespace VEPROMS.CSLA.Library { val = val.Replace("`", "\xB0"); val = val.Replace("\xF8", "\xB0"); + if (convertCaretToDeltaSymbol) + val = val.Replace("^", "\x394"); // delta + val = val.Replace("\x7F", "\x394"); //delta // An X/Y Plot RO type might have text preceding the Plot Commands int pstart = val.IndexOf("<