summaryrefslogtreecommitdiff
path: root/vcl/quartz/salbmp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/quartz/salbmp.cxx')
-rw-r--r--vcl/quartz/salbmp.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx
index bbb82c019fb3..8603f26e0359 100644
--- a/vcl/quartz/salbmp.cxx
+++ b/vcl/quartz/salbmp.cxx
@@ -111,11 +111,15 @@ bool QuartzSalBitmap::Create( CGLayerRef xLayer, int nBitmapBits,
DBG_ASSERT( xLayer, "QuartzSalBitmap::Create() from non-layered context" );
// sanitize input parameters
- if( nX < 0 )
- nWidth += nX, nX = 0;
+ if( nX < 0 ) {
+ nWidth += nX;
+ nX = 0;
+ }
- if( nY < 0 )
- nHeight += nY, nY = 0;
+ if( nY < 0 ) {
+ nHeight += nY;
+ nY = 0;
+ }
const CGSize aLayerSize = CGLayerGetSize( xLayer );
SAL_INFO("vcl.cg", "CGLayerGetSize(" << xLayer << ") = " << aLayerSize );