Kaydet (Commit) fa4a87bc authored tarafından Trent MacAlpine's avatar Trent MacAlpine Kaydeden (comit) Adolfo Jayme Barrientos

tdf#86850 Always display clipboard functions in context menu

Change-Id: I6e8b750662894050453932dd60830e7ae4ae27f4
Reviewed-on: https://gerrit.libreoffice.org/15546Tested-by: 's avatarJenkins <ci@libreoffice.org>
Tested-by: 's avatarAdolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: 's avatarAdolfo Jayme Barrientos <fitojb@ubuntu.com>
üst 135755ed
......@@ -64,6 +64,8 @@
#include "vcl/lazydelete.hxx"
#include <sfx2/sfxsids.hrc>
#include <map>
#include <vector>
......@@ -1326,8 +1328,12 @@ bool Menu::ImplIsVisible( sal_uInt16 nPos ) const
bVisible = false;
else if ( pData->eType != MenuItemType::SEPARATOR ) // separators handled above
{
// bVisible = pData->bEnabled && ( !pData->pSubMenu || pData->pSubMenu->HasValidEntries( true ) );
bVisible = pData->bEnabled; // do not check submenus as they might be filled at Activate().
// tdf#86850 Always display clipboard functions
if ( pData->nId == SID_CUT || pData->nId == SID_COPY || pData->nId == SID_PASTE || pData->nId == SID_MENU_PASTE_SPECIAL )
bVisible = true;
else
// bVisible = pData->bEnabled && ( !pData->pSubMenu || pData->pSubMenu->HasValidEntries( true ) );
bVisible = pData->bEnabled; // do not check submenus as they might be filled at Activate().
}
}
......
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