r17860 by jghali - #11145: Enabling separations in Print preview dialog fails
scribus-commit
scribus-commit at lists.scribus.net
Thu Nov 8 00:22:18 UTC 2012
Author: jghali
Date: Thu Nov 8 00:22:18 2012
New Revision: 17860
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17860
Log:
#11145: Enabling separations in Print preview dialog fails
Modified:
branches/Version14x/Scribus/scribus/preview.cpp
Modified: branches/Version14x/Scribus/scribus/preview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17860&path=/branches/Version14x/Scribus/scribus/preview.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/preview.cpp (original)
+++ branches/Version14x/Scribus/scribus/preview.cpp Thu Nov 8 00:22:18 2012
@@ -968,8 +968,10 @@
{
if ((GsMinor < 54) && (GsMajor < 9))
loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc.tif.Cyan.tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
+ else if ((GsMajor < 9) || ((GsMajor == 9) && (GsMinor <= 5)))
+ loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc.Cyan.tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
else
- loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc.Cyan.tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
+ loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc(Cyan).tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
if (!loaderror)
{
imageLoadError(Bild, Seite);
@@ -984,8 +986,10 @@
{
if ((GsMinor < 54) && (GsMajor < 9))
loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc.tif.Magenta.tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
+ else if ((GsMajor < 9) || ((GsMajor == 9) && (GsMinor <= 5)))
+ loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc.Magenta.tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
else
- loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc.Magenta.tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
+ loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc(Magenta).tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
if (!loaderror)
{
imageLoadError(Bild, Seite);
@@ -1000,8 +1004,10 @@
{
if ((GsMinor < 54) && (GsMajor < 9))
loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc.tif.Yellow.tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
+ else if ((GsMajor < 9) || ((GsMajor == 9) && (GsMinor <= 5)))
+ loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc.Yellow.tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
else
- loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc.Yellow.tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
+ loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc(Yellow).tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
if (!loaderror)
{
imageLoadError(Bild, Seite);
@@ -1023,8 +1029,10 @@
QString fnam;
if ((GsMinor < 54) && (GsMajor < 9))
fnam = QString(ScPaths::getTempFileDir()+"/sc.tif.s%1.tif").arg(sepit.value());
+ else if ((GsMajor < 9) || ((GsMajor == 9) && (GsMinor <= 5)))
+ fnam = QString(ScPaths::getTempFileDir()+"/sc.s%1.tif").arg(sepit.value());
else
- fnam = QString(ScPaths::getTempFileDir()+"/sc.s%1.tif").arg(sepit.value());
+ fnam = QString(ScPaths::getTempFileDir()+"/sc(%1).tif").arg(sepit.key());
if (!im.LoadPicture(fnam, 1, cms, false, false, ScImage::RGBData, 72, &mode))
{
imageLoadError(Bild, Seite);
@@ -1042,8 +1050,10 @@
CMSettings cms(doc, "", Intent_Perceptual);
if ((GsMinor < 54) && (GsMajor < 9))
loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc.tif.Black.tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
+ else if ((GsMajor < 9) || ((GsMajor == 9) && (GsMinor <= 5)))
+ loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc.Black.tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
else
- loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc.Black.tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
+ loaderror = im.LoadPicture(ScPaths::getTempFileDir()+"/sc(Black).tif", 1, cms, false, false, ScImage::RGBData, 72, &mode);
if (!loaderror)
{
imageLoadError(Bild, Seite);
More information about the scribus-commit
mailing list