diff options
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/directx/dx_canvas.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/canvas/source/directx/dx_canvas.cxx b/canvas/source/directx/dx_canvas.cxx index 69587d0a5d8c..26dd88b0b538 100644 --- a/canvas/source/directx/dx_canvas.cxx +++ b/canvas/source/directx/dx_canvas.cxx @@ -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( |