mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Correct ascending/descending arrows when sorting card and keyword lists
This commit is contained in:
@@ -198,7 +198,7 @@ void ItemList::sortBy(long column, bool ascending) {
|
|||||||
long count = GetColumnCount();
|
long count = GetColumnCount();
|
||||||
for (long i = 0 ; i < count ; ++i) {
|
for (long i = 0 ; i < count ; ++i) {
|
||||||
if (i == column) {
|
if (i == column) {
|
||||||
SetColumnImage(i, sort_ascending ? 0 : 1); // arrow up/down
|
SetColumnImage(i, ascending ? 0 : 1); // arrow up/down
|
||||||
} else if (i == sort_by_column) {
|
} else if (i == sort_by_column) {
|
||||||
SetColumnImage(i, -1);
|
SetColumnImage(i, -1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user