B2021-142 fixed invalid & character in table text when printing the table.
This commit is contained in:
parent
6828b5cca3
commit
617362fdb0
@ -1061,6 +1061,7 @@ namespace Volian.Controls.Library
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
str = AdjustHeightAndWidthForDPI(str);
|
str = AdjustHeightAndWidthForDPI(str);
|
||||||
|
str = Regex.Replace(str, "&(?![a-z])", "&"); //B2021-142 fix &'s in text screen - so they are considered text instead of xml
|
||||||
using (StringReader sr = new StringReader(str))
|
using (StringReader sr = new StringReader(str))
|
||||||
{
|
{
|
||||||
ReadXml(sr);
|
ReadXml(sr);
|
||||||
@ -1084,8 +1085,9 @@ namespace Volian.Controls.Library
|
|||||||
DPIscreen = (int)gr.DpiX;
|
DPIscreen = (int)gr.DpiX;
|
||||||
}
|
}
|
||||||
XmlDocument xd = new XmlDocument();
|
XmlDocument xd = new XmlDocument();
|
||||||
xd.LoadXml(str);
|
str = Regex.Replace(str, "&(?![a-z])", "&"); //B2021-142 fix &'s in text screen - so they are considered text instead of xml
|
||||||
XmlNode xn = xd.SelectSingleNode("//DPI");
|
xd.LoadXml(str);
|
||||||
|
XmlNode xn = xd.SelectSingleNode("//DPI");
|
||||||
if (xn != null && xn.InnerText != DPIscreen.ToString())
|
if (xn != null && xn.InnerText != DPIscreen.ToString())
|
||||||
{
|
{
|
||||||
int DPIgrid = int.Parse(xn.InnerText);
|
int DPIgrid = int.Parse(xn.InnerText);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user