Fixed bogus assertion thrown when the toolbox contains only one toolbar.

Fixed crash that occurs when a toolbox contains only one toolbar, and you
try to destroy the toolbar. Reviewed and approved by ramiro.
This commit is contained in:
kin%netscape.com 1998-09-16 18:23:37 +00:00
Родитель d54f33c098
Коммит 5a6a539bf0
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -1145,9 +1145,6 @@ DeleteChild(Widget child)
/* Update the item and tab lists */
UpdateItems(w);
/* Decrease the item count */
tp->item_count++;
return XtIsManaged(child);
}
/*----------------------------------------------------------------------*/
@ -2379,7 +2376,7 @@ XfeToolBoxItemSetPosition(Widget w,Widget item,int pos)
assert( _XfeIsAlive(w) );
assert( XfeIsToolBox(w) );
assert( tp->item_count > 1 );
assert( tp->item_count >= 1 );
if (pos == XmLAST_POSITION)
{