From c83ddec75f26749ea92c34995f892030e8dad441 Mon Sep 17 00:00:00 2001 From: New Pagodi Date: Sat, 17 Feb 2018 19:49:44 +0100 Subject: [PATCH] Fix drawing call tips in wxSTC when using Direct2D Use the correct window as the containing control in SurfaceD2D. Closes #18080. --- src/stc/PlatWX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index b46c5ef885..303bfbf9d6 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -1036,7 +1036,7 @@ void SurfaceD2D::Init(SurfaceID sid, WindowID wid) if ( win && win->GetName() == "wxSTCCallTip" ) win = win->GetParent(); - wxStyledTextCtrl* const stc = wxDynamicCast(wid, wxStyledTextCtrl); + wxStyledTextCtrl* const stc = wxDynamicCast(win, wxStyledTextCtrl); if ( stc ) { wxDC* const dc = static_cast(sid);