diff options
author | tsahi glik <tsahi.glik@cloudon.com> | 2014-01-16 13:11:53 -0800 |
---|---|---|
committer | tsahi glik <tsahi.glik@cloudon.com> | 2014-01-16 13:12:12 -0800 |
commit | 62c7ba40c79528d08aa55217b3ce8b7ee67a4de6 (patch) | |
tree | 892d27bab0b19f18e47cacb7d392845c881ea215 /vcl/quartz | |
parent | 278bbb4dc8f0256081f8ba4bd7d79401321824e7 (diff) |
fix compile break on macos
Diffstat (limited to 'vcl/quartz')
-rw-r--r-- | vcl/quartz/salgdicommon.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx index 0224f5860ea9..dec87ffad206 100644 --- a/vcl/quartz/salgdicommon.cxx +++ b/vcl/quartz/salgdicommon.cxx @@ -1157,6 +1157,7 @@ sal_uInt16 AquaSalGraphics::GetBitCount() const SalBitmap* AquaSalGraphics::getBitmap( long nX, long nY, long nDX, long nDY ) { +#ifdef IOS if (!mbForeignContext && m_aDevice != NULL) { // on ios virtual device are Svp so use Svp bitmap to get the content @@ -1193,20 +1194,19 @@ SalBitmap* AquaSalGraphics::getBitmap( long nX, long nY, long nDX, long nDY } return NULL; } - else - { - DBG_ASSERT( mxLayer, "AquaSalGraphics::getBitmap() with no layer" ); +#endif - ApplyXorContext(); + DBG_ASSERT( mxLayer, "AquaSalGraphics::getBitmap() with no layer" ); - QuartzSalBitmap* pBitmap = new QuartzSalBitmap; - if( !pBitmap->Create( mxLayer, mnBitmapDepth, nX, nY, nDX, nDY) ) - { - delete pBitmap; - pBitmap = NULL; - } - return pBitmap; + ApplyXorContext(); + + QuartzSalBitmap* pBitmap = new QuartzSalBitmap; + if( !pBitmap->Create( mxLayer, mnBitmapDepth, nX, nY, nDX, nDY) ) + { + delete pBitmap; + pBitmap = NULL; } + return pBitmap; } #ifndef IOS |