r13884 by jghali - #8365: saved file cannot be reopened
scribus-commit
scribus-commit at lists.scribus.net
Wed Aug 26 05:47:57 CEST 2009
Revision: 13884
Author: jghali
Date: 2009-08-19T23:45:48.312380Z
Commit message: #8365: saved file cannot be reopened
Changeset:
M /trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
Diffs:
Index: scribus/plugins/fileloader/scribus134format/scribus134format.cpp
===================================================================
--- scribus/plugins/fileloader/scribus134format/scribus134format.cpp (revision 13883)
+++ scribus/plugins/fileloader/scribus134format/scribus134format.cpp (revision 13884)
@@ -124,8 +124,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)
@@ -146,8 +147,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