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:
@@ -4808,7 +4808,7 @@ wxSize wxWindowMSW::GetDPI() const
|
|||||||
|
|
||||||
if ( hwnd == NULL )
|
if ( hwnd == NULL )
|
||||||
{
|
{
|
||||||
const wxWindow* topWin = wxGetTopLevelParent(const_cast<wxWindow*>(this));
|
const wxWindow* topWin = wxGetTopLevelParent(const_cast<wxWindowMSW*>(this));
|
||||||
if ( topWin )
|
if ( topWin )
|
||||||
{
|
{
|
||||||
hwnd = GetHwndOf(topWin);
|
hwnd = GetHwndOf(topWin);
|
||||||
|
Reference in New Issue
Block a user