mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-10 02:25:46 +01:00
fixed hashtable crash bug with WMStringHashCallbacks
This commit is contained in:
@@ -163,7 +163,11 @@ WMAddSortedListItem(WMList *lPtr, char *text)
|
||||
tmp->nextPtr = item;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (index < lPtr->fullFitLines+lPtr->flags.dontFitAll-lPtr->topItem) {
|
||||
paintList(lPtr);
|
||||
}
|
||||
|
||||
lPtr->itemCount++;
|
||||
|
||||
if (lPtr->selectedItem >= index)
|
||||
@@ -216,6 +220,10 @@ WMInsertListItem(WMList *lPtr, int row, char *text)
|
||||
tmp->nextPtr = item;
|
||||
}
|
||||
|
||||
if (row < lPtr->fullFitLines+lPtr->flags.dontFitAll-lPtr->topItem) {
|
||||
paintList(lPtr);
|
||||
}
|
||||
|
||||
lPtr->itemCount++;
|
||||
|
||||
/* update the scroller when idle, so that we don't waste time
|
||||
|
||||
Reference in New Issue
Block a user