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