vcl/quartz/salbmp.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
New commits: commit e08d84547fcb5db6f91deb1af3ec6b3a4b060caf Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Feb 26 21:07:16 2016 +0100 loplugin:commaoperator Change-Id: I481fe73256bf0d974c54a6419874fa76ea4beaa6 diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx index bbb82c0..8603f26 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 ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits