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