r15786 by fschmid - Fixed Bug #9468: ".sla.gz.autosave documents are not compressed"

scribus-commit scribus-commit at lists.scribus.net
Sat Nov 6 11:29:40 CET 2010


Author: fschmid
Date: Sat Nov  6 10:29:39 2010
New Revision: 15786

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15786
Log:
Fixed Bug #9468: ".sla.gz.autosave documents are not compressed"

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15786&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Sat Nov  6 10:29:39 2010
@@ -9254,8 +9254,11 @@
 			{
 				std::cout << "Saving: " << doc->DocName.toStdString() << ".emergency" << std::endl;
 				doc->autoSaveTimer->stop();
-				FileLoader fl(doc->DocName+".emergency");
-				fl.SaveFile(doc->DocName+".emergency", doc, 0);
+				QString emName = doc->DocName+".emergency";
+				if (doc->DocName.right(2) == "gz")
+					emName += ".gz";
+				FileLoader fl(emName);
+				fl.SaveFile(emName, doc, 0);
 			}
 			view->close();
 			uint numPages=doc->Pages->count();




More information about the scribus-commit mailing list