diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp
index b0077c8b1a..493d0c35d6 100644
--- a/src/html/htmlwin.cpp
+++ b/src/html/htmlwin.cpp
@@ -170,8 +170,9 @@ bool wxHtmlWindow::LoadPage(const wxString& location)
wxString err;
err.Printf(_("The browser is unable to open requested location :\n\n%s"), WXSTRINGCAST location);
- wxMessageBox(err, "Error");
m_tmpCanDraw = TRUE;
+ Refresh();
+ wxMessageBox(err, "Error");
return FALSE;
}
@@ -539,4 +540,4 @@ FORCE_LINK(mod_links)
FORCE_LINK(mod_tables)
-#endif
\ No newline at end of file
+#endif