r22187 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Oct 7 15:27:53 UTC 2017


Author: jghali
Date: Sat Oct  7 15:27:53 2017
New Revision: 22187

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22187
Log:
#15011: Print Preview don't show image if its rotation is not zero degree

Modified:
    trunk/Scribus/scribus/scpageoutput.cpp

Modified: trunk/Scribus/scribus/scpageoutput.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22187&path=/trunk/Scribus/scribus/scpageoutput.cpp
==============================================================================
--- trunk/Scribus/scribus/scpageoutput.cpp	(original)
+++ trunk/Scribus/scribus/scpageoutput.cpp	Sat Oct  7 15:27:53 2017
@@ -763,7 +763,7 @@
 			ScImage* pImage = NULL;
 			double imScaleX = item->imageXScale();
 			double imScaleY = item->imageYScale();
-			if( m_reloadImages )
+			if (m_reloadImages)
 			{
 				bool dummy;
 				bool useCmyk = false;
@@ -782,7 +782,7 @@
 				scImg.imgInfo.RequestProps = item->pixm.imgInfo.RequestProps;
 				scImg.imgInfo.isRequest = item->pixm.imgInfo.isRequest;
 				scImg.loadPicture(item->Pfile, item->pixm.imgInfo.actualPageNumber, cmsSettings, translateImageModeToRequest(imageMode), m_imageRes, &dummy);
-				if( extensionIndicatesEPSorPS(ext) || extensionIndicatesPDF(ext)  )
+				if (extensionIndicatesEPSorPS(ext) || extensionIndicatesPDF(ext) )
 				{
 					imScaleX *= (72.0 / (double) m_imageRes);
 					imScaleY *= (72.0 / (double) m_imageRes);
@@ -813,7 +813,7 @@
 				painter->scale(1, -1);
 			}
 			painter->translate(item->imageXOffset() * item->imageXScale(), item->imageYOffset() * item->imageYScale());
-			//painter->translate(item->LocalX * imScaleX * scale, item->LocalY * imScaleY * scale); ??
+			painter->rotate(item->imageRotation());
 			painter->scale( imScaleX, imScaleY );
 			if (pImage->imgInfo.lowResType != 0)
 				painter->scale(pImage->imgInfo.lowResScale, pImage->imgInfo.lowResScale);




More information about the scribus-commit mailing list