X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82b30473f935d7ffe21a165aa8ef63e16599c3fc..739c5499fcab1c165b8dd0591c9fd9e2329b3cf9:/src/msw/dragimag.cpp?ds=sidebyside diff --git a/src/msw/dragimag.cpp b/src/msw/dragimag.cpp index 17cad733bb..067d67608d 100644 --- a/src/msw/dragimag.cpp +++ b/src/msw/dragimag.cpp @@ -413,7 +413,7 @@ bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, wxWindow* wxSize sz = fullScreenRect->GetSize(); - if (fullScreenRect->GetParent() && !fullScreenRect->IsKindOf(CLASSINFO(wxFrame))) + if (fullScreenRect->GetParent() && !wxDynamicCast(fullScreenRect, wxFrame)) fullScreenRect->GetParent()->ClientToScreen(& x, & y); rect.x = x; rect.y = y;