From 207bcfc5b9d3e857741cd973c3ee9615bdeb2563 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Fri, 28 Oct 2011 17:16:35 +0200 Subject: Revert "basebmp: B2IRange::isEmpty is surprisingly, unhelpfully lame - workaround" This reverts commit 69e4dd120631b05e7abb2c65f36b71e9424a8a72. --- basebmp/source/bitmapdevice.cxx | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'basebmp') diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx index f7f139b47a1d..a483197aa54d 100644 --- a/basebmp/source/bitmapdevice.cxx +++ b/basebmp/source/bitmapdevice.cxx @@ -1343,10 +1343,6 @@ namespace if( aLocalSourceArea.isEmpty() ) return false; - // isEmpty is not what we want I think ... - if( aLocalSourceArea.getWidth() <= 0 || aLocalSourceArea.getHeight() <= 0 ) - return false; - // calc relative new source area points (relative to orig // source area) const ::basegfx::B2IVector aUpperLeftOffset( @@ -1363,10 +1359,6 @@ namespace if( aLocalDestArea.isEmpty() ) return false; - // isEmpty is not what we want I think ... - if( aLocalDestArea.getWidth() <= 0 || aLocalDestArea.getHeight() <= 0 ) - return false; - // calc relative new dest area points (relative to orig // source area) const ::basegfx::B2IVector aDestUpperLeftOffset( @@ -1406,10 +1398,6 @@ namespace if( aLocalSourceArea.isEmpty() ) return false; - // sadly isEmpty is not what we want I think ... - if( aLocalSourceArea.getWidth() <= 0 || aLocalSourceArea.getHeight() <= 0 ) - return false; - // calc relative new source area points (relative to orig // source area) const ::basegfx::B2IVector aUpperLeftOffset( @@ -1428,10 +1416,6 @@ namespace if( aLocalDestArea.isEmpty() ) return false; - // isEmpty is not what we want I think ... - if( aLocalDestArea.getWidth() <= 0 || aLocalDestArea.getHeight() <= 0 ) - return false; - // calc relative new dest area points (relative to orig // source area) const ::basegfx::B2IVector aDestUpperLeftOffset( -- cgit