diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-06-26 11:49:08 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-06-26 11:49:08 +0000 |
commit | db0191654299c98da6bea9a8a13fb6588c244618 (patch) | |
tree | 40e65dde8bab3cddfcedd5ce0c60c609e4fe851f /canvas | |
parent | 87b34d1de24125986d306ec0f2cde17fe887216c (diff) |
#i10000# warning fixed
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( |