framework/source/uielement/newmenucontroller.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 354849e0af51767433b1c3ad417e857d5c84e2b4 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Dec 14 09:57:19 2021 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Dec 14 12:11:24 2021 +0100 prefer css::awt::XPopupMenu api Change-Id: I23310b8b5adbe7c84d0b9d30a227619c1e9a6960 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126803 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/framework/source/uielement/newmenucontroller.cxx b/framework/source/uielement/newmenucontroller.cxx index 59e9160f8ced..9b70d5821682 100644 --- a/framework/source/uielement/newmenucontroller.cxx +++ b/framework/source/uielement/newmenucontroller.cxx @@ -339,11 +339,11 @@ void NewMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu > const & continue; if ( aDynamicMenuEntry.sURL == "private:separator" ) - pVCLPopupMenu->InsertSeparator(); + rPopupMenu->insertSeparator(-1); else { - pVCLPopupMenu->InsertItem( nItemId, aDynamicMenuEntry.sTitle ); - pVCLPopupMenu->SetItemCommand( nItemId, aDynamicMenuEntry.sURL ); + rPopupMenu->insertItem(nItemId, aDynamicMenuEntry.sTitle, 0, -1); + rPopupMenu->setCommand(nItemId, aDynamicMenuEntry.sURL); void* nAttributePtr = MenuAttributes::CreateAttribute( aDynamicMenuEntry.sTargetName, aDynamicMenuEntry.sImageIdentifier ); pVCLPopupMenu->SetUserValue( nItemId, nAttributePtr, MenuAttributes::ReleaseAttribute );