B2022-058: print of transitions in tables with a dash, ‘-‘, are printing the dash as a question mark, ‘?’
This commit is contained in:
@@ -902,11 +902,13 @@ namespace VEPROMS.CSLA.Library
|
|||||||
string gg = MyGrid.Data.Substring(myIndex, myLength);
|
string gg = MyGrid.Data.Substring(myIndex, myLength);
|
||||||
if (newvalue.Contains(@"\u8209?"))
|
if (newvalue.Contains(@"\u8209?"))
|
||||||
{
|
{
|
||||||
Match m = Regex.Match(newvalue, @"(\\f[0-9]+)(\\u[0-9]{1,4}\?)(\\f[0-9]+ ?)");
|
// B2022-058: Printing of '-' in transition in table prints as '?' instead of '-'. Wasn't using correct string to
|
||||||
if (m == null)
|
// look for font character (was using newvalue, not gg)
|
||||||
newvalue = newvalue.Replace(@"\u8209?", "-");
|
Match m = Regex.Match(gg, @"(\\f[0-9]+)(\\u[0-9]{1,4}\?)(\\f[0-9]+ ?)");
|
||||||
else
|
if (m == null)
|
||||||
newvalue = newvalue.Replace(@"\u8209?", m.Groups[1].Value + @"\u8209?" + m.Groups[3].Value);
|
newvalue = newvalue.Replace(@"\u8209?", "-");
|
||||||
|
else
|
||||||
|
newvalue = newvalue.Replace(@"\u8209?", m.Groups[1].Value + @"\u8209?" + m.Groups[3].Value);
|
||||||
}
|
}
|
||||||
if (newvalue.Contains(@"\u8593?"))
|
if (newvalue.Contains(@"\u8593?"))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user