Commit a8a477ae authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

pcx: Do not support sequential devices

We need QIODevice::pos() to work in QDataStream &operator>>.

BUG: 459541
parent 2f27dff4
Pipeline #236416 passed with stage
in 3 minutes and 4 seconds
......@@ -684,6 +684,12 @@ bool PCXHandler::canRead(QIODevice *device)
return false;
// We do not support sequential images
// We need to know the current position to properly read the header
if (device->isSequential()) {
return false;
qint64 oldPos = device->pos();
char head[1];
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment