From bf06c9e14fff9d63cb554eb7ec6e800fedddddfb Mon Sep 17 00:00:00 2001 From: mschill Date: Wed, 5 Feb 2025 13:34:18 -0500 Subject: [PATCH] =?UTF-8?q?B2025-014=20PROMS=20=E2=80=93=20RO=20Update=20A?= =?UTF-8?q?dmin=20Tool=20Error=20when=20updating=20RO=20containing=20carat?= =?UTF-8?q?s/deltas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While testing an update for C2025-0011, using BNPP data and ROs, the update ro values crashes at the next to the last procedure set which is folder called "PROMS Tests." It crashes with a null reference as it is not able to detect the format. This is to change this to use the “ActiveFormat” of the Working Folder instead of utilizing “MyFormat”. --- PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs index 8f760c9a..eefa7dfe 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs @@ -705,7 +705,7 @@ namespace VEPROMS.CSLA.Library Match m = Regex.Match(newvalue, @"(\\f[0-9]+)(\\u[0-9]{1,4}\?)(\\f[0-9]+ ?)"); if (m == null) newvalue = newvalue.Replace(@"\u916?", "^"); - else if (m.Groups[1].Value == "" && !ContentItems[0].MyItem.MyItemInfo.MyDocVersion.MyFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta) + else if (m.Groups[1].Value == "" && !ContentItems[0].MyItem.MyItemInfo.MyDocVersion.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta) newvalue = newvalue.Replace(@"\u916?", "^"); else if (m.Groups[1].Value == "") { @@ -1420,7 +1420,7 @@ namespace VEPROMS.CSLA.Library if (newvalue.Contains(@"\u916?")) { Match m = Regex.Match(gg, @"(\\f[0-9]+)(\\u[0-9]{1,4}\?)(\\f[0-9]+ ?)"); - if (m.Groups.Count < 3 && !ContentItems[0].MyDocVersion.MyFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta) + if (m.Groups.Count < 3 && !ContentItems[0].MyDocVersion.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta) newvalue = newvalue.Replace(@"\u916?", "^"); else if (m.Groups.Count < 3) newvalue = newvalue.Replace(@"\u916?", $"{(char)916}");