#i10000# warning fixed

This commit is contained in:
Kurt Zenker
2008-06-26 11:49:08 +00:00
parent 87b34d1de2
commit db01916542

View File

@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: dx_canvas.cxx,v $ * $RCSfile: dx_canvas.cxx,v $
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
@@ -183,9 +183,8 @@ namespace dxcanvas
// here. for this, check whether the HDC has a bitmap // here. for this, check whether the HDC has a bitmap
// selected. // selected.
HBITMAP hBmp; HBITMAP hBmp;
if( !(hBmp=(HBITMAP)GetCurrentObject(pSysData->hDC, hBmp=(HBITMAP)GetCurrentObject(pSysData->hDC, OBJ_BITMAP);
OBJ_BITMAP)) || if( !hBmp || GetObjectType(pSysData->hDC) != OBJ_MEMDC )
GetObjectType(pSysData->hDC) != OBJ_MEMDC )
{ {
throw lang::NoSupportException( throw lang::NoSupportException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(