Skip to content

Commit

Permalink
Quick fix for github issue 12
Browse files Browse the repository at this point in the history
If the exception in the formatXML function involves setting the CurentXML font, catch/ignore the exception.
  • Loading branch information
mgobat committed Jul 24, 2020
1 parent 493c4d1 commit 7c82b1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,9 @@ Public Class Form1
End While
End With
Catch ex As Exception
MsgBox("error: " & ex.ToString)
If Not ex.ToString.Contains("Font prototype, FontStyle newStyle") Then
MsgBox("error: " & ex.ToString)
End If
End Try
End Sub
Private Function StripControlChars(ByVal source As String, Optional ByVal KeepCRLF As _
Expand Down

0 comments on commit 7c82b1f

Please sign in to comment.