Kaydet (Commit) 181d4128 authored tarafından Armin Le Grand's avatar Armin Le Grand

Corrected small signed/unsigned mismatch

üst 8ee49906
...@@ -874,8 +874,8 @@ sal_Bool EnhWMFReader::ReadEnhWMF() ...@@ -874,8 +874,8 @@ sal_Bool EnhWMFReader::ReadEnhWMF()
// test if it is sensible to crop // test if it is sensible to crop
if ( ( cxSrc > 0 ) && ( cySrc > 0 ) && if ( ( cxSrc > 0 ) && ( cySrc > 0 ) &&
( xSrc >= 0 ) && ( ySrc >= 0 ) && ( xSrc >= 0 ) && ( ySrc >= 0 ) &&
( xSrc + cxSrc <= static_cast< sal_Int32 >(aBitmap.GetSizePixel().Width()) ) && ( xSrc + static_cast< sal_Int32 >(cxSrc) <= static_cast< sal_Int32 >(aBitmap.GetSizePixel().Width()) ) &&
( ySrc + cySrc <= static_cast< sal_Int32 >(aBitmap.GetSizePixel().Height()) ) ) ( ySrc + static_cast< sal_Int32 >(cySrc) <= static_cast< sal_Int32 >(aBitmap.GetSizePixel().Height()) ) )
{ {
Rectangle aCropRect( Point( xSrc, ySrc ), Size( cxSrc, cySrc ) ); Rectangle aCropRect( Point( xSrc, ySrc ), Size( cxSrc, cySrc ) );
aBitmap.Crop( aCropRect ); 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