From 855fc328aad3c9993ebea6c52774f6fd057ddede Mon Sep 17 00:00:00 2001 From: Waldo Bastian Date: Thu, 19 Feb 2004 15:15:32 +0000 Subject: [PATCH] Handle the case where ctm[3] == 0 correctly and consistent (BR73196) svn path=/trunk/kdegraphics/kpdf/; revision=289404 --- kpdf/QOutputDev.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kpdf/QOutputDev.cpp b/kpdf/QOutputDev.cpp index b226b6b31..d06a360fa 100644 --- a/kpdf/QOutputDev.cpp +++ b/kpdf/QOutputDev.cpp @@ -872,7 +872,7 @@ void QOutputDev::drawImage(GfxState *state, Object */*ref*/, Stream *str, int wi uchar **scanlines = img. jumpTable ( ); - if ( ctm [3] < 0 ) + if ( ctm [3] <= 0 ) scanlines += ( height - 1 ); for ( int y = 0; y < height; y++ ) { @@ -899,7 +899,7 @@ void QOutputDev::drawImage(GfxState *state, Object */*ref*/, Stream *str, int wi ctm [0] < 0 ? scanline-- : scanline++; } - ctm [3] > 0 ? scanlines++ : scanlines--; + ctm [3] <= 0 ? scanlines-- : scanlines++; }