summaryrefslogtreecommitdiff
path: root/filter/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-23 11:03:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-02-23 11:06:59 +0000
commit46b1b5dd2a5368663fd56434160fa126f1a54d84 (patch)
tree55cbb4fe4b74eb2ac2ccdf18305da250d9b9c28c /filter/source
parent840ad0a88045021c58644404a099a3678a371020 (diff)
make this a little clearer
no logic change intended Change-Id: Ibfc46d0aba9e220be54270734e0cdfbc123be9a5
Diffstat (limited to 'filter/source')
-rw-r--r--filter/source/graphicfilter/itiff/itiff.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/graphicfilter/itiff/itiff.cxx b/filter/source/graphicfilter/itiff/itiff.cxx
index 4fdbb3066aff..12aee89023e5 100644
--- a/filter/source/graphicfilter/itiff/itiff.cxx
+++ b/filter/source/graphicfilter/itiff/itiff.cxx
@@ -993,12 +993,12 @@ bool TIFFReader::ConvertScanline(sal_Int32 nY)
case 1 :
{
- sal_uInt32 nByteCount = ( nImageWidth >> 3 ) + 1;
+ sal_uInt32 nByteCount = nImageWidth >> 3;
if ( bByteSwap )
{
sal_Int32 nx = 0;
- while ( --nByteCount )
+ while (nByteCount--)
{
nByteVal = *pt++;
pAcc->SetPixelIndex( nY, nx++, nByteVal & 1 );
@@ -1030,7 +1030,7 @@ bool TIFFReader::ConvertScanline(sal_Int32 nY)
else
{
sal_Int32 nx = 7;
- while ( --nByteCount )
+ while (nByteCount--)
{
nByteVal = *pt++;
pAcc->SetPixelIndex( nY, nx, nByteVal & 1 );