Skip to content

Commit

Permalink
Fix drawing call tips in wxSTC when using Direct2D
Browse files Browse the repository at this point in the history
Use the correct window as the containing control in SurfaceD2D.

Closes wxWidgets#18080.
  • Loading branch information
NewPagodi authored and vadz committed Feb 17, 2018
1 parent 1dc1d66 commit c83ddec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stc/PlatWX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<wxDC*>(sid);
Expand Down

0 comments on commit c83ddec

Please sign in to comment.