Author: alg
Date: Mon Aug 13 08:46:22 2012
New Revision: 1372319

URL: http://svn.apache.org/viewvc?rev=1372319&view=rev
Log:
Corrected singned/unsigned compare

Modified:
    incubator/ooo/trunk/main/svtools/source/filter/wmf/enhwmf.cxx

Modified: incubator/ooo/trunk/main/svtools/source/filter/wmf/enhwmf.cxx
URL: 
http://svn.apache.org/viewvc/incubator/ooo/trunk/main/svtools/source/filter/wmf/enhwmf.cxx?rev=1372319&r1=1372318&r2=1372319&view=diff
==============================================================================
--- incubator/ooo/trunk/main/svtools/source/filter/wmf/enhwmf.cxx (original)
+++ incubator/ooo/trunk/main/svtools/source/filter/wmf/enhwmf.cxx Mon Aug 13 
08:46:22 2012
@@ -866,8 +866,8 @@ sal_Bool EnhWMFReader::ReadEnhWMF()
                                                // test if it is sensible to 
crop
                                                if ( ( cxSrc > 0 ) && ( cySrc > 
0 ) && 
                                                        ( xSrc >= 0 ) && ( ySrc 
>= 0 ) &&
-                                                               ( xSrc + cxSrc 
<= aBitmap.GetSizePixel().Width() ) &&
-                                                                       ( ySrc 
+ cySrc <= aBitmap.GetSizePixel().Height() ) )
+                                ( xSrc + cxSrc <= static_cast< sal_Int32 
>(aBitmap.GetSizePixel().Width()) ) &&
+                                    ( ySrc + cySrc <= static_cast< sal_Int32 
>(aBitmap.GetSizePixel().Height()) ) )
                                                {
                                                        Rectangle aCropRect( 
Point( xSrc, ySrc ), Size( cxSrc, cySrc ) );
                                                        aBitmap.Crop( aCropRect 
);


Reply via email to