mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-13 04:15:50 +01:00
Fixed bug with sorting list items in WINGs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user