Author: jghali
Date: Thu Jul  9 21:58:35 2020
New Revision: 23914

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23914
Log:
Small code cleanups

Modified:
    trunk/Scribus/scribus/pageitem.cpp
    trunk/Scribus/scribus/pdflib_core.cpp

Modified: trunk/Scribus/scribus/pageitem.cpp
URL: 
http://scribus.net/websvn/diff.php?repname=Scribus&rev=23914&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp  (original)
+++ trunk/Scribus/scribus/pageitem.cpp  Thu Jul  9 21:58:35 2020
@@ -1327,7 +1327,7 @@
                if (lastInFrame() < length -1)
                {
                        StoryText content(m_Doc);
-                       itemText.select(lastInFrame() +1, length - 
(lastInFrame() +1));
+                       itemText.select(lastInFrame() + 1, length - 
(lastInFrame() + 1));
                        content.insert(0, itemText, true);
                        itemText.removeSelection();
                        unlink(false);

Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: 
http://scribus.net/websvn/diff.php?repname=Scribus&rev=23914&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp       (original)
+++ trunk/Scribus/scribus/pdflib_core.cpp       Thu Jul  9 21:58:35 2020
@@ -10724,7 +10724,7 @@
                                // We can't unfortunately use directly cmyk 
jpeg files. Otherwise we have to use the /Decode argument in image
                                // dictionary, which we do not quite want as 
this argument is simply ignored by some rips and software
                                // amongst which photoshop and illustrator
-                               /*else if (((!Options.UseRGB) && 
(!Options.isGrayscale) && (!Options.UseProfiles2)) && (cm== 0) && 
(c->effectsInUse.count() == 0) && (img.imgInfo.colorspace == ColorSpaceCMYK) && 
(!((Options.RecalcPic) && (Options.PicRes < (qMax(72.0 / c->imageXScale(), 72.0 
/ c->imageYScale()))))) && (!img.imgInfo.progressive))
+                               /*else if (((!Options.UseRGB) && 
(!Options.isGrayscale) && (!Options.UseProfiles2)) && (cm == 
PDFOptions::Compression_Auto) && (c->effectsInUse.count() == 0) && 
(img.imgInfo.colorspace == ColorSpaceCMYK) && (!((Options.RecalcPic) && 
(Options.PicRes < (qMax(72.0 / c->imageXScale(), 72.0 / c->imageYScale()))))) 
&& (!img.imgInfo.progressive))
                                {
                                        jpegUseOriginal = false;
                                        exportToCMYK = true;


_______________________________________________
scribus-commit mailing list
[email protected]
http://lists.scribus.net/mailman/listinfo/scribus-commit

Reply via email to