r15799 by fschmid - PGF import: fixed byte ordering on big endian systems.

scribus-commit scribus-commit at lists.scribus.net
Sun Nov 7 10:59:26 CET 2010


Author: fschmid
Date: Sun Nov  7 09:59:25 2010
New Revision: 15799

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15799
Log:
PGF import: fixed byte ordering on big endian systems.

Modified:
    trunk/Scribus/scribus/scimgdataloader_pgf.cpp

Modified: trunk/Scribus/scribus/scimgdataloader_pgf.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15799&path=/trunk/Scribus/scribus/scimgdataloader_pgf.cpp
==============================================================================
--- trunk/Scribus/scribus/scimgdataloader_pgf.cpp (original)
+++ trunk/Scribus/scribus/scimgdataloader_pgf.cpp Sun Nov  7 09:59:25 2010
@@ -111,7 +111,7 @@
 			{
 				QByteArray data;
 				data.resize(pgfImg.Width(level) * pgfImg.Height(level) * 3);
-				int map[] = {2, 1, 0};
+				int map[] = {0, 1, 2};
 				pgfImg.GetBitmap(pgfImg.Width(level) * 3, (UINT8*)data.data(), 24, map);
 				m_image = QImage(pgfImg.Width(level), pgfImg.Height(level), QImage::Format_ARGB32);
 				int imgDcount = 0;
@@ -167,7 +167,6 @@
 			{
 				QByteArray data;
 				data.resize(pgfImg.Width(level) * pgfImg.Height(level) * 3);
-			//	int map[] = {0, 1, 2};
 				int map[] = {2, 1, 0};
 				pgfImg.GetBitmap(pgfImg.Width(level) * 3, (UINT8*)data.data(), 24, map);
 				m_image = QImage(pgfImg.Width(level), pgfImg.Height(level), QImage::Format_ARGB32);




More information about the scribus-commit mailing list