From db0191654299c98da6bea9a8a13fb6588c244618 Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Thu, 26 Jun 2008 11:49:08 +0000 Subject: [PATCH] #i10000# warning fixed --- canvas/source/directx/dx_canvas.cxx | 7 +++---- 1 file 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(