r13883 by jghali - #8365: saved file cannot be reopened

scribus-commit scribus-commit at lists.scribus.net
Wed Aug 26 05:47:41 CEST 2009


Revision: 13883
Author: jghali
Date: 2009-08-19T23:44:19.016712Z
Commit message: #8365: saved file cannot be reopened

Changeset: 
M  /branches/Version135/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp

Diffs:
Index: scribus/plugins/fileloader/scribus134format/scribus134format.cpp
===================================================================
--- scribus/plugins/fileloader/scribus134format/scribus134format.cpp	(revision 13882)
+++ scribus/plugins/fileloader/scribus134format/scribus134format.cpp	(revision 13883)
@@ -123,7 +123,9 @@
 //	if (docBytes.left(16) == "<SCRIBUSUTF8NEW " && docBytes.left(35).contains("Version=\"1.3.4"))
 //		return true;
 	int startElemPos = docBytes.left(512).indexOf("<SCRIBUSUTF8NEW ");
-	return startElemPos >= 0 && ((docBytes.mid(startElemPos, 64).indexOf("Version=\"1.3.4") >= 0) || (docBytes.mid(startElemPos, 64).indexOf("Version=\"1.3.5") >= 0));
+	return startElemPos >= 0 && ((docBytes.mid(startElemPos, 64).indexOf("Version=\"1.3.4") >= 0) || 
+	                             (docBytes.mid(startElemPos, 64).indexOf("Version=\"1.3.5") >= 0) ||
+	                             (docBytes.mid(startElemPos, 64).indexOf("Version=\"1.3.6") >= 0));
 }
 
 QString Scribus134Format::readSLA(const QString & fileName)
@@ -144,7 +146,9 @@
 	}
 	QString docText("");
 	int startElemPos = docBytes.left(512).indexOf("<SCRIBUSUTF8NEW ");
-	if (startElemPos >= 0 && ((docBytes.mid(startElemPos, 64).indexOf("Version=\"1.3.4") >= 0) || (docBytes.mid(startElemPos, 64).indexOf("Version=\"1.3.5") >= 0)))
+	if (startElemPos >= 0 && ((docBytes.mid(startElemPos, 64).indexOf("Version=\"1.3.4") >= 0) || 
+	                          (docBytes.mid(startElemPos, 64).indexOf("Version=\"1.3.5") >= 0) ||
+	                          (docBytes.mid(startElemPos, 64).indexOf("Version=\"1.3.6") >= 0)))
 		docText = QString::fromUtf8(docBytes);
 	else
 		return QString::null;




More information about the scribus-commit mailing list