1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-28 01:12:30 +01:00

Fixed bug with sorting list items in WINGs

This commit is contained in:
dan
1999-10-16 03:02:19 +00:00
parent 08903ea9ea
commit 5385a02b33
2 changed files with 3 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ changes since wmaker 0.61.1:
- fixed WMInsertInBag(). It ignored index, and always put the new item at end. - fixed WMInsertInBag(). It ignored index, and always put the new item at end.
- added WMSaveUserDefaults(). - added WMSaveUserDefaults().
- fixed bug with sorting list items.
changes since wmaker 0.61.0: changes since wmaker 0.61.0:

View File

@@ -130,8 +130,8 @@ WMCreateList(WMWidget *parent)
static int static int
comparator(const void *a, const void *b) comparator(const void *a, const void *b)
{ {
WMListItem *item1 = (WMListItem*)a; WMListItem *item1 = *(WMListItem**)a;
WMListItem *item2 = (WMListItem*)b; WMListItem *item2 = *(WMListItem**)b;
if (strcmp(item1->text, item2->text) < 0) if (strcmp(item1->text, item2->text) < 0)
return -1; return -1;