r18343 by craig - #11604: Detect if file is already compressed and use this in the collect for output dialog, and rename the file correctly
scribus-commit
scribus-commit at lists.scribus.net
Wed Jun 26 20:37:34 UTC 2013
Author: craig
Date: Wed Jun 26 20:37:34 2013
New Revision: 18343
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18343
Log:
#11604: Detect if file is already compressed and use this in the collect for output dialog, and rename the file correctly
Modified:
trunk/Scribus/scribus/collect4output.cpp
trunk/Scribus/scribus/scribus.cpp
Modified: trunk/Scribus/scribus/collect4output.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18343&path=/trunk/Scribus/scribus/collect4output.cpp
==============================================================================
--- trunk/Scribus/scribus/collect4output.cpp (original)
+++ trunk/Scribus/scribus/collect4output.cpp Wed Jun 26 20:37:34 2013
@@ -168,11 +168,11 @@
{
if (!newName.endsWith(".gz"))
newName += ".gz";
- else
- {
- if (newName.endsWith(".gz"))
- newName = newName.remove(".gz");
- }
+ }
+ else
+ {
+ if (newName.endsWith(".gz"))
+ newName = newName.remove(".gz");
}
if (!overwrite(ScCore->primaryMainWindow(), newName))
Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18343&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Wed Jun 26 20:37:34 2013
@@ -9730,6 +9730,8 @@
QString ScribusMainWindow::fileCollect(bool compress, bool withFonts, const bool withProfiles, const QString& )
{
+ if ((doc->hasName) && doc->DocName.endsWith(".gz"))
+ compress=true;
CollectForOutput_UI c(this, doc, QString::null, withFonts, withProfiles, compress);
QString newFileName;
QString errorMsg=c.collect(newFileName);
More information about the scribus-commit
mailing list