From 0607245378c26fa4967149ef155b95a7089afbfe Mon Sep 17 00:00:00 2001 From: kojima Date: Sat, 15 May 1999 18:17:37 +0000 Subject: [PATCH] fixed crash bug --- WINGs/wtabview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WINGs/wtabview.c b/WINGs/wtabview.c index 68d47aa3..2a9450cb 100644 --- a/WINGs/wtabview.c +++ b/WINGs/wtabview.c @@ -154,7 +154,7 @@ WMInsertItemInTabView(WMTabView *tPtr, int index, WMTabViewItem *item) if (index > tPtr->itemCount) index = tPtr->itemCount; - if (index == 0) { + if (index == 0 && tPtr->items[0]) { W_UnmapTabViewItem(tPtr->items[0]); }