<span style>My previous fix was incorrect. The fixed diff is now :</span><div style><br></div><div style><div>diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx</div>
<div>index 80adbd7..90ab2a8 100644</div><div>--- a/framework/source/uielement/toolbarmanager.cxx</div><div>+++ b/framework/source/uielement/toolbarmanager.cxx</div><div>@@ -1880,7 +1880,25 @@ IMPL_LINK( ToolBarManager, MenuButton, ToolBox*, pToolBar )</div>
<div> if ( m_bDisposed )</div><div> return 1;</div><div> //modify for i33668 by shizhoubo:2008:04</div><div>- GetToolBarCustomMenu(pToolBar);</div><div>+ PopupMenu * pMenu = GetToolBarCustomMenu(pToolBar);</div>
<div>+ if (pMenu)</div><div>+ {</div><div class="im" style="color:rgb(80,0,80)"><div>+ sal_uInt16 nObsoleteItems = 6;</div><div>+ sal_uInt16 positionInMenu;</div><div>+ sal_uInt32 obsoleteItems[] = { MENUITEM_TOOLBAR_CLOSE , </div>
<div>+ MENUITEM_TOOLBAR_VISIBLEBUTTON , </div><div>+ MENUITEM_TOOLBAR_CUSTOMIZETOOLBAR,</div><div>+ MENUITEM_TOOLBAR_LOCKTOOLBARPOSITION , </div>
</div><div>+ MENUITEM_TOOLBAR_DOCKTOOLouBAR , </div><div class="im" style="color:rgb(80,0,80)"><div>+ MENUITEM_TOOLBAR_DOCKALLTOOLBAR </div><div>+ };</div>
<div>+ for( int i = 0 ; i < nObsoleteItems ; i++ )</div><div>+ {</div></div><div>+ positionInMenu = pMenu->GetItemPos( obsoleteItems[i] );</div><div class="im" style="color:rgb(80,0,80)"><div>
+ if ( positionInMenu != MENU_ITEM_NOTFOUND )</div></div><div>+ pMenu->RemoveItem( positionInMenu );</div><div>+ }</div><div>+ }</div><div> //end</div><div> return 0;</div><div>
}</div><div><br></div><div>If you're happy with this I could foward it to the list.</div></div>