Fix for 52895, mac menus can get messed up by changing the title of a submenu. r=smfr

git-svn-id: svn://10.0.0.236/trunk@79721 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
saari%netscape.com 2000-09-21 05:29:20 +00:00
parent acecf6b5f9
commit 95b6d2ada8

View File

@ -1492,6 +1492,9 @@ nsMenu::AttributeChanged(nsIDocument *aDocument, PRInt32 aNameSpaceID, nsIAtom *
domElement->GetAttribute(NS_LITERAL_STRING("value"), mLabel);
if((mMacMenuID <= 5) && (mMacMenuID >= 2))
return;
::DeleteMenu(mMacMenuID);
mMacMenuHandle = NSStringNewMenu(mMacMenuID, mLabel);