Commit aaf7cdaf authored by Boudewijn Rempt's avatar Boudewijn Rempt

Don't convert if not necessary

svn path=/trunk/koffice/; revision=746365
parent b93308d4
......@@ -310,7 +310,8 @@ void KoColorSpace::bitBlt(quint8 *dst,
if (rows <= 0 || cols <= 0)
return;
if (this != srcSpace) {
if (!(*this == *srcSpace)) {
quint32 len = pixelSize() * rows * cols;
QVector<quint8> * conversionCache = threadLocalConversionCache(len);
......
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