r14078 by fschmid - Mac Pict Image Loader: clear background before painting.

scribus-commit scribus-commit at lists.scribus.net
Thu Oct 1 10:40:15 CEST 2009


Revision: 14078
Author: fschmid
Date: 2009-10-01T08:36:07.391199Z
Commit message: Mac Pict Image Loader: clear background before painting.

Changeset: 
M  /trunk/Scribus/scribus/scimgdataloader_pict.cpp

Diffs:
Index: scribus/scimgdataloader_pict.cpp
===================================================================
--- scribus/scimgdataloader_pict.cpp	(revision 14077)
+++ scribus/scimgdataloader_pict.cpp	(revision 14078)
@@ -89,7 +89,7 @@
 		m_image = QImage(docWidth, docHeight, QImage::Format_ARGB32);
 		if (m_image.isNull())
 			return false;
-//		m_image.fill(qRgba(225, 255, 255, 255));
+		m_image.fill(qRgba(255, 255, 255, 255));
 		imagePainter.begin(&m_image);
 		imagePainter.setRenderHint(QPainter::Antialiasing , true);
 		imagePainter.translate(baseX, baseY);
@@ -998,7 +998,7 @@
 	switch (mode)
 	{
 		case 0:
-			imagePainter.setCompositionMode(QPainter::CompositionMode_Source);
+			imagePainter.setCompositionMode(QPainter::CompositionMode_SourceOver);
 			break;
 		case 1:
 			imagePainter.setCompositionMode(QPainter::CompositionMode_SourceOver);




More information about the scribus-commit mailing list