From: Stefan Neis Date: Tue, 31 Oct 2006 23:50:32 +0000 (+0000) Subject: Compilation fix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a19063065b6abe40fc9fb373d6f96ea4e6ab616a Compilation fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/os2/dc.cpp b/src/os2/dc.cpp index 2347161e0e..efce57c91e 100644 --- a/src/os2/dc.cpp +++ b/src/os2/dc.cpp @@ -656,7 +656,7 @@ void wxDC::DoDrawLine( } else { - if (m_vSelectedBitmap != wxNullBitmap) + if (m_vSelectedBitmap.Ok()) { m_vRclPaint.yTop = m_vSelectedBitmap.GetHeight(); m_vRclPaint.xRight = m_vSelectedBitmap.GetWidth(); @@ -986,7 +986,7 @@ void wxDC::DoDrawRectangle( vY = OS2Y(vY,vHeight); else { - if (m_vSelectedBitmap != wxNullBitmap) + if (m_vSelectedBitmap.Ok()) { m_vRclPaint.yTop = m_vSelectedBitmap.GetHeight(); m_vRclPaint.xRight = m_vSelectedBitmap.GetWidth(); @@ -1076,7 +1076,7 @@ void wxDC::DoDrawRoundedRectangle( vY = OS2Y(vY,vHeight); else { - if (m_vSelectedBitmap != wxNullBitmap) + if (m_vSelectedBitmap.Ok()) { m_vRclPaint.yTop = m_vSelectedBitmap.GetHeight(); m_vRclPaint.xRight = m_vSelectedBitmap.GetWidth(); @@ -1743,7 +1743,7 @@ void wxDC::DrawAnyText( const wxString& rsText, } else { - if (m_vSelectedBitmap != wxNullBitmap) + if (m_vSelectedBitmap.Ok()) { m_vRclPaint.yTop = m_vSelectedBitmap.GetHeight(); m_vRclPaint.xRight = m_vSelectedBitmap.GetWidth();