#i10000# warning fixed
This commit is contained in:
@@ -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(
|
||||||
|
Reference in New Issue
Block a user