diff --git a/include/wx/html/htmlwin.h b/include/wx/html/htmlwin.h
index 57cc3f500b..807960b7ed 100644
--- a/include/wx/html/htmlwin.h
+++ b/include/wx/html/htmlwin.h
@@ -85,7 +85,7 @@ public:
// it is NOT address/filename of HTML document. If you want to
// specify document location, use LoadPage() istead
// Return value : false if an error occurred, true otherwise
- bool SetPage(const wxString& source);
+ virtual bool SetPage(const wxString& source);
// Append to current page
bool AppendToPage(const wxString& source);