Remove unnecessary base class OnPaint() call from wxGenericColourDialog.

Events should be skipped instead of calling the base class event handler
directly, but in this case even this is not needed as wxGenericColourDialog
takes care of processing the event completely.

Closes #14405.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-06-15 23:23:23 +00:00
parent d6cf9064d4
commit 4a699e3a59

View File

@@ -200,14 +200,8 @@ void wxGenericColourDialog::OnMouseEvent(wxMouseEvent& event)
event.Skip();
}
void wxGenericColourDialog::OnPaint(wxPaintEvent& event)
void wxGenericColourDialog::OnPaint(wxPaintEvent& WXUNUSED(event))
{
#if !defined(__WXMOTIF__) && !defined(__WXPM__) && !defined(__WXCOCOA__) && !defined(__WXOSX__)
wxDialog::OnPaint(event);
#else
wxUnusedVar(event);
#endif
wxPaintDC dc(this);
PaintBasicColours(dc);