]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlwin.cpp
added possibility to throw different objects and crash directly from the main frame...
[wxWidgets.git] / src / html / htmlwin.cpp
index 089483b2da1dd33530b24822db3374adea7516dd..c89834231ecb937ef598ddf2c01be2aca7302d02 100644 (file)
@@ -848,8 +848,13 @@ void wxHtmlWindow::OnCellMouseHover(wxHtmlCell * WXUNUSED(cell),
     // do nothing here
 }
 
-void wxHtmlWindow::OnEraseBackground(wxEraseEvent& WXUNUSED(event))
+void wxHtmlWindow::OnEraseBackground(wxEraseEvent& event)
 {
+    // we do have to erase background now that we reuse it (instead of
+    // overwriting it) in OnPaint() below, but maybe we should set some flag if
+    // we get here as this would mean that user code doesn't paint background
+    // itself and then we wouldn't have to copy old bits to dcm below...
+    event.Skip();
 }
 
 void wxHtmlWindow::OnPaint(wxPaintEvent& WXUNUSED(event))