Diffusion Krita 2568bb5825b7

Fix sort order of frames with simple naming scheme

Authored by rempt on Sep 2 2019, 1:35 PM.

Description

Fix sort order of frames with simple naming scheme

QCollator::isNumerical works in platform-specific and Qt-version
specific ways, and cannot be guaranteed to sort mixed alphanumerical
strings in a numerical way. It just doesn't work that way.

This patch extracts all numbers for the comparant strings, and then
checks the last number in each string numerically. Now, if the user
would make frames like this:

scene1frame9
scene1frame10

Everything is fine.

frame9scene1
frame10scene1

will break; and unless we offer a kind of filename templating thing
where the user can specify which part of the filename provides the
frame number, there's nothing more we can do.

BUG:375885

Details

Committed
remptSep 2 2019, 1:38 PM
Parents
R37:9fbb539e4b49: Fix possible leak in PsdResourceSection
Branches
Unknown
Tags
Unknown