diff --git a/src/data.cpp b/src/data.cpp index 2f22549..e4d9f98 100644 --- a/src/data.cpp +++ b/src/data.cpp @@ -325,6 +325,9 @@ static bool layer(CTX &ctx, Data::Layer &l) bool Data::load(const QByteArray &ba) { + if (ba.isEmpty()) + return true; + CTX ctx(ba); while (ctx.bp < ctx.be) {