From 74542224ef39091b281a8f610baacf48b2806e5b Mon Sep 17 00:00:00 2001 From: John Date: Fri, 10 Mar 2023 15:24:13 +0000 Subject: [PATCH] B2023-031 Added better check for invalid symbol characters in tables, to account for link information that is not visible. --- PROMS/Volian.Print.Library/Grid2Pdf.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/Grid2Pdf.cs b/PROMS/Volian.Print.Library/Grid2Pdf.cs index be70d553..5b537832 100644 --- a/PROMS/Volian.Print.Library/Grid2Pdf.cs +++ b/PROMS/Volian.Print.Library/Grid2Pdf.cs @@ -992,8 +992,10 @@ public string Path { rtb.Select(i, 1); // If the character is a printable character set the font to the text font - // B2019-067 also check for a proportional symbol font for example, FreeSerif - if (rtb.SelectionLength == 0 && strRTF != null && (rtb.SelectionFont.FontFamily.Name == "VESymbFix" || rtb.SelectionFont.FontFamily.Name == Volian.Base.Library.vlnFont.ProportionalSymbolFont)) + // B2019-067 Also check for a proportional symbol font for example, FreeSerif + // B2023-031 Added check of a "Text" SelectionType. + // The SelectionType was "Empty" for the non-viewable link information and thus flagged it as an error + if (rtb.SelectionLength == 0 && rtb.SelectionType == System.Windows.Forms.RichTextBoxSelectionTypes.Text && strRTF != null && (rtb.SelectionFont.FontFamily.Name == "VESymbFix" || rtb.SelectionFont.FontFamily.Name == Volian.Base.Library.vlnFont.ProportionalSymbolFont)) { // Add debug information to the error log if the selection length is zero // Changed debug information to make it more useful