diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2015-12-20 14:17:36 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2015-12-20 14:47:13 +0200 |
commit | d62f22570dfa767cc646f362eb2f6a2f78113874 (patch) | |
tree | b2139f44ee2869d5f4b0d21722b5e9bfad675139 | |
parent | 13d4bda00c433d9609fc2129cf1fcc86b739e2d1 (diff) |
ResourceMenuController: fix detection of verbs for readonly docs
Change-Id: If1f84e6ace0e42b69b8cd845e4827f1aed6552df
-rw-r--r-- | framework/source/uielement/resourcemenucontroller.cxx | 4 |
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 ); |