#i10000# warning fixed
This commit is contained in:
parent
87b34d1de2
commit
db01916542
1 changed files with 3 additions and 4 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue