r19045 by fschmid - Fixed Bug #11715: PDF thumbnails include "out of gamut" color effect

scribus-commit scribus-commit at lists.scribus.net
Fri Apr 18 09:30:40 UTC 2014


Author: fschmid
Date: Fri Apr 18 09:30:40 2014
New Revision: 19045

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19045
Log:
Fixed Bug #11715: PDF thumbnails include "out of gamut" color effect

Modified:
    trunk/Scribus/scribus/scribusview.cpp

Modified: trunk/Scribus/scribus/scribusview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19045&path=/trunk/Scribus/scribus/scribusview.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusview.cpp (original)
+++ trunk/Scribus/scribus/scribusview.cpp Fri Apr 18 09:30:40 2014
@@ -2578,6 +2578,13 @@
 			bool oldDrawAsPreview = Doc->drawAsPreview;
 			Doc->guidesPrefs().framesShown = false;
 			Doc->guidesPrefs().showControls = false;
+			bool cmsCorr = false;
+			if ((Doc->cmsSettings().CMSinUse) && (Doc->cmsSettings().GamutCheck))
+			{
+				cmsCorr = true;
+				Doc->cmsSettings().GamutCheck = false;
+				Doc->enableCMS(true);
+			}
 			Doc->drawAsPreview = true;
 			m_canvas->setScale(sc);
 			m_canvas->setPreviewMode(true);
@@ -2687,7 +2694,11 @@
 					currItem->setImageYOffset(imgY);
 				}
 			}
-
+			if (cmsCorr)
+			{
+				Doc->cmsSettings().GamutCheck = true;
+				Doc->enableCMS(true);
+			}
 			Doc->drawAsPreview = oldDrawAsPreview;
 			Doc->guidesPrefs().framesShown  = oldFramesShown;
 			Doc->guidesPrefs().showControls = oldShowControls;




More information about the scribus-commit mailing list