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
parent fa5fb056fb
commit a2e20fdb02

View File

@ -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)
{