X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b11752c4f9e1fd4b11ba3d184246267facb3ad3..ad653fa23069c5d9378247084f03c9a718c3ad62:/src/generic/sashwin.cpp diff --git a/src/generic/sashwin.cpp b/src/generic/sashwin.cpp index aab0b33b90..0b8a17a8e4 100644 --- a/src/generic/sashwin.cpp +++ b/src/generic/sashwin.cpp @@ -115,8 +115,8 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event) // the area to draw on. wxWindow* parent = this; - while (parent && !parent->IsKindOf(CLASSINFO(wxDialog)) && - !parent->IsKindOf(CLASSINFO(wxFrame))) + while (parent && !wxDynamicCast(parent, wxDialog) && + !wxDynamicCast(parent, wxFrame)) parent = parent->GetParent(); wxScreenDC::StartDrawingOnTop(parent);