Skip to content

Commit e26f6ea

Browse files
authored
Fix LT-22520: Crash when closing Find dialog in Grammar Sketch (#882)
1 parent 10d71d1 commit e26f6ea

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Src/xWorks/GeneratedHtmlViewer.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,11 @@ private void InitHtmlControl()
228228

229229
private void Find_Click(object sender, EventArgs e)
230230
{
231+
if (m_sHtmlFileName == InitialDocument)
232+
{
233+
// InitialDocument doesn't have the proper javascript for Find to work.
234+
return;
235+
}
231236
findDlg = new FindDialog(m_htmlControl.Browser);
232237
findDlg.FormClosing += new FormClosingEventHandler(FindDialog_FormClosing);
233238
findDlg.Show(this);

0 commit comments

Comments
 (0)