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

fixed crash bug

This commit is contained in:
kojima
1999-05-15 18:17:37 +00:00
parent 55c9657253
commit 0607245378

View File

@@ -154,7 +154,7 @@ WMInsertItemInTabView(WMTabView *tPtr, int index, WMTabViewItem *item)
if (index > tPtr->itemCount) if (index > tPtr->itemCount)
index = tPtr->itemCount; index = tPtr->itemCount;
if (index == 0) { if (index == 0 && tPtr->items[0]) {
W_UnmapTabViewItem(tPtr->items[0]); W_UnmapTabViewItem(tPtr->items[0]);
} }