Diffusion Krita f1452472b944

Add a workaround for loading broken files with negative frame ids

Authored by dkazakov on Aug 13 2018, 10:34 AM.

Description

Add a workaround for loading broken files with negative frame ids

Summary: CCBUG:395378

Test Plan:
Try to load the file attached to this bugreport:
https://bugs.kde.org/show_bug.cgi?id=395378

Every layer in the file should have two frames (in random order). At least one
of the frames should have sane pixel data

Reviewers: Krita, rempt, jounip

Tags: Krita

Differential Revision: https://phabricator.kde.org/D13562