r18209 by fschmid - Don't seek on sequential devices.

scribus-commit scribus-commit at lists.scribus.net
Sat Mar 16 11:45:08 UTC 2013


Author: fschmid
Date: Sat Mar 16 11:45:07 2013
New Revision: 18209

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18209
Log:
Don't seek on sequential devices.

Modified:
    trunk/Scribus/scribus/plugins/import/xar/importxar.cpp

Modified: trunk/Scribus/scribus/plugins/import/xar/importxar.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18209&path=/trunk/Scribus/scribus/plugins/import/xar/importxar.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/xar/importxar.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/xar/importxar.cpp Sat Mar 16 11:45:07 2013
@@ -102,13 +102,11 @@
 			if (opCode == 30)
 			{
 				ts.skipRawData(dataLen);
-				quint64 pos = ts.device()->pos();
 				QtIOCompressor compressor(ts.device(), 6, 1);
 				compressor.setStreamFormat(QtIOCompressor::RawZipFormat);
 				compressor.open(QIODevice::ReadOnly);
 				QDataStream tsc(&compressor);
 				tsc.setByteOrder(QDataStream::LittleEndian);
-				tsc.device()->seek(pos);
 				while (!tsc.atEnd())
 				{
 					tsc >> opCode;
@@ -178,13 +176,11 @@
 			if (opCode == 30)
 			{
 				ts.skipRawData(dataLen);
-				quint64 pos = ts.device()->pos();
 				QtIOCompressor compressor(ts.device(), 6, 1);
 				compressor.setStreamFormat(QtIOCompressor::RawZipFormat);
 				compressor.open(QIODevice::ReadOnly);
 				QDataStream tsc(&compressor);
 				tsc.setByteOrder(QDataStream::LittleEndian);
-				tsc.device()->seek(pos);
 				while (!tsc.atEnd())
 				{
 					tsc >> opCode;
@@ -598,13 +594,11 @@
 		if (opCode == 30)
 		{
 			ts.skipRawData(dataLen);
-			quint64 pos = ts.device()->pos();
 			QtIOCompressor compressor(ts.device(), 6, 1);
 			compressor.setStreamFormat(QtIOCompressor::RawZipFormat);
 			compressor.open(QIODevice::ReadOnly);
 			QDataStream tsc(&compressor);
 			tsc.setByteOrder(QDataStream::LittleEndian);
-			tsc.device()->seek(pos);
 			while (!tsc.atEnd())
 			{
 				tsc >> opCode;




More information about the scribus-commit mailing list