X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8552e6f031ded8ae61b4a5b489fbf06962365da7..c7fa61e5ec4ac323c865adeb01e0c9f232faae20:/contrib/samples/ogl/ogledit/ogledit.cpp diff --git a/contrib/samples/ogl/ogledit/ogledit.cpp b/contrib/samples/ogl/ogledit/ogledit.cpp index 44226b4ac0..b69f7dece3 100644 --- a/contrib/samples/ogl/ogledit/ogledit.cpp +++ b/contrib/samples/ogl/ogledit/ogledit.cpp @@ -154,7 +154,7 @@ MyFrame::MyFrame(wxDocManager *manager, wxFrame *frame, const wxString& title, editMenu = NULL; } -void MyFrame::OnSize(wxSizeEvent& WXUNUSED(event)) +void MyFrame::OnSize(wxSizeEvent& event) { if (canvas && palette) { @@ -172,6 +172,7 @@ void MyFrame::OnSize(wxSizeEvent& WXUNUSED(event)) palette->SetSize(paletteX, paletteY, paletteW, paletteH); canvas->SetSize(canvasX, canvasY, canvasW, canvasH); } + event.Skip(); } void MyFrame::OnCloseWindow(wxCloseEvent& event)