Kaydet (Commit) 260a75ac authored tarafından Armin Le Grand's avatar Armin Le Grand

Corrected singned/unsigned compare

üst 18242b53
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment