[Libreoffice-commits] core.git: Branch 'feature/perfwork5' - vcl/source

Matúš Kukan matus.kukan at collabora.com
Tue Nov 18 13:29:39 PST 2014


 vcl/source/gdi/bitmap.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e023442ccf3349293d8d04d3b228105f23f4a50a
Author: Matúš Kukan <matus.kukan at collabora.com>
Date:   Tue Nov 18 22:28:19 2014 +0100

    Bitmap::Crop test: does it make difference?
    
    Change-Id: I001210840d535ac54837fff092c90835f9f2f547

diff --git a/vcl/source/gdi/bitmap.cxx b/vcl/source/gdi/bitmap.cxx
index 5f6477a..7b988d0 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();
 


More information about the Libreoffice-commits mailing list