[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Thu Mar 9 10:00:54 UTC 2017
vcl/source/gdi/pngread.cxx | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
New commits:
commit 7302c76cca954440b14bf53ac8a4748f8754c314
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Mar 9 09:59:28 2017 +0000
fix indent
Change-Id: I00c3273754d24c933a284738efc6d8408c1e13a3
diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx
index 7b5f82c..bea6e07 100644
--- a/vcl/source/gdi/pngread.cxx
+++ b/vcl/source/gdi/pngread.cxx
@@ -618,13 +618,14 @@ bool PNGReaderImpl::ImplReadHeader( const Size& rPreviewSizeHint )
SAL_INFO( "vcl.gdi", "preview size " << aPreviewSize.Width() << " " << aPreviewSize.Height() );
for( int i = 1; i < 5; ++i )
- {
- if( (maTargetSize.Width() >> i) < aPreviewSize.Width() )
- break;
- if( (maTargetSize.Height() >> i) < aPreviewSize.Height() )
- break;
- mnPreviewShift = i;
- }
+ {
+ if( (maTargetSize.Width() >> i) < aPreviewSize.Width() )
+ break;
+ if( (maTargetSize.Height() >> i) < aPreviewSize.Height() )
+ break;
+ mnPreviewShift = i;
+ }
+
mnPreviewMask = (1 << mnPreviewShift) - 1;
}
}
More information about the Libreoffice-commits
mailing list