Commit a29ed35a authored by Christophe Devriese's avatar Christophe Devriese

"fixed" wrong orientation of images

svn path=/trunk/kdegraphics/kpdf/; revision=242835
parent d890a6a3
......@@ -849,7 +849,7 @@ void QOutputDevPixmap::drawImage(GfxState *state, Object */*ref*/, Stream *str,
uchar **scanlines = img. jumpTable ( );
if ( ctm [3] > 0 )
if ( ctm [3] < 0 )
scanlines += ( height - 1 );
for ( int y = 0; y < height; y++ ) {
......@@ -876,7 +876,7 @@ void QOutputDevPixmap::drawImage(GfxState *state, Object */*ref*/, Stream *str,
ctm [0] < 0 ? scanline-- : scanline++;
}
ctm [3] > 0 ? scanlines-- : scanlines++;
ctm [3] > 0 ? scanlines++ : scanlines--;
}
......
......@@ -106,6 +106,7 @@ namespace KPDF
{
static QMutex mutex;
ASSERT(mutex.locked() == false);
mutex.lock();
if (m_doc)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment