]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove unnecessary base class OnPaint() call from wxGenericColourDialog.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 15 Jun 2012 23:23:23 +0000 (23:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 15 Jun 2012 23:23:23 +0000 (23:23 +0000)
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

src/generic/colrdlgg.cpp

index 3b5695ab7d8ada0d8634fd22619a426630ba9ac0..49e4bb6a45c5aea8d6ee25b6e8c875c8fd62462e 100644 (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);