mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 23:42:57 +00:00
Keep the relative order of equal entries in sort_palette()
This commit is contained in:
parent
cdc7ab32fc
commit
af9d5c917f
@ -124,7 +124,7 @@ Remap sort_palette(Palette* palette, SortPaletteBy channel, bool ascending)
|
||||
tmp[i].color = palette->getEntry(i);
|
||||
}
|
||||
|
||||
std::sort(tmp.begin(), tmp.end(), PalEntryWithIndexPredicate(channel, ascending));
|
||||
std::stable_sort(tmp.begin(), tmp.end(), PalEntryWithIndexPredicate(channel, ascending));
|
||||
|
||||
Remap remap(palette->size());
|
||||
for (int i=0; i<palette->size(); ++i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user