Some wxOS2 compilation fixes after wxDC changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "wx/image.h"
|
||||
#endif
|
||||
|
||||
#include "wx/os2/dc.h"
|
||||
#include "wx/os2/private.h"
|
||||
|
||||
#include "wx/xpmdecod.h"
|
||||
@@ -928,9 +929,12 @@ wxImage wxBitmap::ConvertToImage() const
|
||||
//
|
||||
// May already be selected into a PS
|
||||
//
|
||||
if ((pDC = GetSelectedInto()) != NULL)
|
||||
pDC = GetSelectedInto();
|
||||
const wxPMDCImpl *impl;
|
||||
if (pDC != NULL &&
|
||||
(impl = wxDynamicCast( pDC->GetImpl(), wxPMDCImpl )) != NULL)
|
||||
{
|
||||
hPSMem = pDC->GetHPS();
|
||||
hPSMem = impl->GetHPS();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user