Kaydet (Commit) b98f2cc3 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

lok context menu: Handle the case we only get the slot-id.

Change-Id: I7a2537ccebf80c79bf61f041bfb18cd6ddc93ca2
üst 7dda5614
......@@ -176,7 +176,14 @@ namespace {
else
{
const sal_uInt16 nItemId = pMenu->GetItemId(nPos);
const OUString aCommandURL = pMenu->GetItemCommand(nItemId);
OUString aCommandURL = pMenu->GetItemCommand(nItemId);
if (aCommandURL.isEmpty())
{
const SfxSlot *pSlot = SFX_SLOTPOOL().GetSlot(nItemId);
if (pSlot)
aCommandURL = pSlot->GetCommandString();
}
const OUString aItemText = pMenu->GetItemText(nItemId);
Menu* pPopupSubmenu = pMenu->GetPopupMenu(nItemId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment