X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e9f62dafb75dc5baa3800af456d1b0248d85357..496beb3fc0244c36bdb0e37055aa868012b52a23:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index db1345a74e..5f1c764941 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -330,9 +330,9 @@ wxWindowMSW::~wxWindowMSW() wxFrame *frame = wxDynamicCast(win, wxFrame); if ( frame ) { - if ( frameMSW->GetLastFocus() == this ) + if ( frame->GetLastFocus() == this ) { - frameMSW->SetLastFocus((wxWindow*)NULL); + frame->SetLastFocus((wxWindow*)NULL); } break; }