From 5385a02b33d49c14149a131bd115febbc33fbdb1 Mon Sep 17 00:00:00 2001 From: dan Date: Sat, 16 Oct 1999 03:02:19 +0000 Subject: [PATCH] Fixed bug with sorting list items in WINGs --- WINGs/ChangeLog | 1 + WINGs/wlist.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/WINGs/ChangeLog b/WINGs/ChangeLog index f66fbe48..71a7b6a3 100644 --- a/WINGs/ChangeLog +++ b/WINGs/ChangeLog @@ -3,6 +3,7 @@ changes since wmaker 0.61.1: - fixed WMInsertInBag(). It ignored index, and always put the new item at end. - added WMSaveUserDefaults(). +- fixed bug with sorting list items. changes since wmaker 0.61.0: diff --git a/WINGs/wlist.c b/WINGs/wlist.c index 2fb9e3cb..b318e3ab 100644 --- a/WINGs/wlist.c +++ b/WINGs/wlist.c @@ -130,8 +130,8 @@ WMCreateList(WMWidget *parent) static int comparator(const void *a, const void *b) { - WMListItem *item1 = (WMListItem*)a; - WMListItem *item2 = (WMListItem*)b; + WMListItem *item1 = *(WMListItem**)a; + WMListItem *item2 = *(WMListItem**)b; if (strcmp(item1->text, item2->text) < 0) return -1; -- 2.11.4.GIT