From 3a15e9f9436083fb9dbcee4937dea4d2bbe58565 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 17 Feb 2020 19:36:45 +0100 Subject: [PATCH] Fix cast in wxWindowMSW code in wxUniv build Cast "this" to wxWindowMSW, which is always its correct type, even in wxUniv builds. Closes #18670. --- src/msw/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 2572ec0efc..984b7c7be3 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -4808,7 +4808,7 @@ wxSize wxWindowMSW::GetDPI() const if ( hwnd == NULL ) { - const wxWindow* topWin = wxGetTopLevelParent(const_cast(this)); + const wxWindow* topWin = wxGetTopLevelParent(const_cast(this)); if ( topWin ) { hwnd = GetHwndOf(topWin);