Commit f95073ba authored by Albert Astals Cid's avatar Albert Astals Cid

If we are going to copy raw data from src to dest we need to make sure both...

If we are going to copy raw data from src to dest we need to make sure both are in the same image format

Thanks to Adrià Arrufat for the testing

BUGS: 243434

svn path=/trunk/KDE/kdegraphics/okular/; revision=1225247
parent ec45cf96
......@@ -738,7 +738,7 @@ void PagePainter::scalePixmapOnImage ( QImage & dest, const QPixmap * src,
unsigned int * destData = (unsigned int *)dest.bits();
// source image (1:1 conversion from pixmap)
QImage srcImage = src->toImage();
QImage srcImage = src->toImage().convertToFormat(format);
unsigned int * srcData = (unsigned int *)srcImage.bits();
// precalc the x correspondancy conversion in a lookup table
......
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