diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-11-18 22:28:19 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-11-18 22:29:05 +0100 |
commit | e023442ccf3349293d8d04d3b228105f23f4a50a (patch) | |
tree | a178857c884c7f80a73638d0ba90a987967b6e59 | |
parent | Let's not re-use the same iterator esp when it's still iterating. (diff) | |
download | core-e023442ccf3349293d8d04d3b228105f23f4a50a.tar.gz core-e023442ccf3349293d8d04d3b228105f23f4a50a.zip |
Bitmap::Crop test: does it make difference?
Change-Id: I001210840d535ac54837fff092c90835f9f2f547
-rw-r--r-- | vcl/source/gdi/bitmap.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/bitmap.cxx b/vcl/source/gdi/bitmap.cxx index 5f6477a00b82..7b988d01463b 100644 --- a/vcl/source/gdi/bitmap.cxx +++ b/vcl/source/gdi/bitmap.cxx @@ -785,7 +785,7 @@ bool Bitmap::Crop( const Rectangle& rRectPixel ) aRect.Intersection( Rectangle( Point(), aSizePix ) ); - if( !aRect.IsEmpty() ) + if( !aRect.IsEmpty() && aSizePix != aRect.GetSize()) { BitmapReadAccess* pReadAcc = AcquireReadAccess(); |