summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2012-08-13 07:46:22 +0000
committerArmin Le Grand <alg@apache.org>2012-08-13 07:46:22 +0000
commit260a75acc104a7d6b12c798998b721fff2e1b204 (patch)
tree2d4ea3e84ca090634edf1374696e8e6a1c229fdd /svtools
parent18242b534b6937b831f5a83f93cb9b86bd137ccf (diff)
Corrected singned/unsigned compare
Notes
Notes: prefer: fa169ffc3d8d5e3cde41411858cc40546fc04e0e
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/filter/wmf/enhwmf.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/filter/wmf/enhwmf.cxx b/svtools/source/filter/wmf/enhwmf.cxx
index e41d560ea737..13fdbc9cc1e3 100644
--- a/svtools/source/filter/wmf/enhwmf.cxx
+++ b/svtools/source/filter/wmf/enhwmf.cxx
@@ -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 );