Fix cast in wxWindowMSW code in wxUniv build

Cast "this" to wxWindowMSW, which is always its correct type, even in
wxUniv builds.

Closes #18670.
This commit is contained in:
Vadim Zeitlin
2020-02-17 19:36:45 +01:00
parent a4906f1222
commit 3a15e9f943

View File

@@ -4808,7 +4808,7 @@ wxSize wxWindowMSW::GetDPI() const
if ( hwnd == NULL )
{
const wxWindow* topWin = wxGetTopLevelParent(const_cast<wxWindow*>(this));
const wxWindow* topWin = wxGetTopLevelParent(const_cast<wxWindowMSW*>(this));
if ( topWin )
{
hwnd = GetHwndOf(topWin);