Resolves fdo#84608: Right-click customize crashes LibO

Regression from 26f2da07b1

Change-Id: I382c4686b5fff0c04bdb36f1859c8ea5b2424772
This commit is contained in:
Julien Nabet
2014-10-03 22:49:36 +02:00
parent 58cd14d597
commit 24fb87501e

View File

@@ -775,7 +775,7 @@ void Menu::SetPopupMenu( sal_uInt16 nItemId, PopupMenu* pMenu )
return;
// same menu, nothing to do
if ( dynamic_cast<PopupMenu*>(pData->pSubMenu) == pMenu )
if ( static_cast<PopupMenu*>(pData->pSubMenu) == pMenu )
return;
// data exchange