mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 11:13:29 +00:00
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:
parent
fa5fb056fb
commit
a2e20fdb02
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user