From 38747916d6405b32a3cfc465e31be743db255878 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 13 Dec 2011 17:07:45 +0100 Subject: Make LineTest::testCornerCases succeed again after last basebmp fix. Though it looks wrong that rtl_allocateMemory(0) == 0. --- basebmp/source/bitmapdevice.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'basebmp') diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx index ec0d3bb6981f..1586fce1cfb5 100644 --- a/basebmp/source/bitmapdevice.cxx +++ b/basebmp/source/bitmapdevice.cxx @@ -1889,7 +1889,7 @@ BitmapDeviceSharedPtr createBitmapDeviceImpl( const basegfx::B2IVector& pMem.reset( reinterpret_cast(rtl_allocateMemory( nMemSize )), &rtl_freeMemory ); - if (!pMem.get()) + if (pMem.get() == 0 && nMemSize != 0) return BitmapDeviceSharedPtr(); rtl_zeroMemory(pMem.get(),nMemSize); } -- cgit