mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2025-01-18 03:52:09 +01:00
Empty messages are valid
This commit is contained in:
parent
00c52d5ab7
commit
30fee38b25
@ -325,6 +325,9 @@ static bool layer(CTX &ctx, Data::Layer &l)
|
|||||||
|
|
||||||
bool Data::load(const QByteArray &ba)
|
bool Data::load(const QByteArray &ba)
|
||||||
{
|
{
|
||||||
|
if (ba.isEmpty())
|
||||||
|
return true;
|
||||||
|
|
||||||
CTX ctx(ba);
|
CTX ctx(ba);
|
||||||
|
|
||||||
while (ctx.bp < ctx.be) {
|
while (ctx.bp < ctx.be) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user