Fix for menuitems being incorrectly marked as menus.

This commit is contained in:
waterson%netscape.com 1999-07-22 06:06:23 +00:00
parent d7695c62cf
commit a890d21e96

View File

@ -220,7 +220,7 @@ RDFMenuBuilderImpl::AddWidgetItem(nsIContent* aElement,
}
// Find out if we're a container or not.
PRBool markAsContainer = IsContainer(aElement, aValue);
PRBool markAsContainer = IsContainer(aElement, aValue) && !IsEmpty(aElement, aValue);
nsCOMPtr<nsIAtom> itemAtom;
// Figure out what atom to use based on whether or not we're a container