summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-12-20 14:17:36 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2015-12-20 14:47:13 +0200
commitd62f22570dfa767cc646f362eb2f6a2f78113874 (patch)
treeb2139f44ee2869d5f4b0d21722b5e9bfad675139 /framework
parentloplugin::stringconcat (diff)
downloadcore-d62f22570dfa767cc646f362eb2f6a2f78113874.tar.gz
core-d62f22570dfa767cc646f362eb2f6a2f78113874.zip
ResourceMenuController: fix detection of verbs for readonly docs
Change-Id: If1f84e6ace0e42b69b8cd845e4827f1aed6552df
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uielement/resourcemenucontroller.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/uielement/resourcemenucontroller.cxx b/framework/source/uielement/resourcemenucontroller.cxx
index a5c55d5221b8..dcbc607831da 100644
--- a/framework/source/uielement/resourcemenucontroller.cxx
+++ b/framework/source/uielement/resourcemenucontroller.cxx
@@ -226,8 +226,8 @@ void ResourceMenuController::addVerbs( const css::uno::Sequence< css::embed::Ver
for ( const auto& rVerb : rVerbs )
{
- if ( rVerb.VerbAttributes ^ css::embed::VerbAttributes::MS_VERBATTR_ONCONTAINERMENU ||
- ( bReadOnly && rVerb.VerbAttributes ^ css::embed::VerbAttributes::MS_VERBATTR_NEVERDIRTIES ) )
+ if ( !( rVerb.VerbAttributes & css::embed::VerbAttributes::MS_VERBATTR_ONCONTAINERMENU ) ||
+ ( bReadOnly && !( rVerb.VerbAttributes & css::embed::VerbAttributes::MS_VERBATTR_NEVERDIRTIES ) ) )
continue;
pVCLMenu->InsertItem( m_nNewMenuId, rVerb.VerbName );