B2022-058: print of transitions in tables with a dash, ‘-‘, are printing the dash as a question mark, ‘?’

This commit is contained in:
Kathy Ruffing 2022-05-16 14:12:38 +00:00
parent 4b6b9451df
commit d2501a0662

View File

@ -902,11 +902,13 @@ namespace VEPROMS.CSLA.Library
string gg = MyGrid.Data.Substring(myIndex, myLength);
if (newvalue.Contains(@"\u8209?"))
{
Match m = Regex.Match(newvalue, @"(\\f[0-9]+)(\\u[0-9]{1,4}\?)(\\f[0-9]+ ?)");
if (m == null)
newvalue = newvalue.Replace(@"\u8209?", "-");
else
newvalue = newvalue.Replace(@"\u8209?", m.Groups[1].Value + @"\u8209?" + m.Groups[3].Value);
// B2022-058: Printing of '-' in transition in table prints as '?' instead of '-'. Wasn't using correct string to
// look for font character (was using newvalue, not gg)
Match m = Regex.Match(gg, @"(\\f[0-9]+)(\\u[0-9]{1,4}\?)(\\f[0-9]+ ?)");
if (m == null)
newvalue = newvalue.Replace(@"\u8209?", "-");
else
newvalue = newvalue.Replace(@"\u8209?", m.Groups[1].Value + @"\u8209?" + m.Groups[3].Value);
}
if (newvalue.Contains(@"\u8593?"))
{