diff options
author | Philipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM> | 2010-08-30 11:42:09 +0200 |
---|---|---|
committer | Philipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM> | 2010-08-30 11:42:09 +0200 |
commit | fdfa64415dec1a11e4aa3cfdb4e1339853f3043a (patch) | |
tree | 8f9e884fcc68385c2fd026192cab0b2101714400 /sw/source/ui/docvw/romenu.cxx | |
parent | dc3e4032cdb647f68e1490239fa0a8341f946369 (diff) | |
parent | 3d341c8efb7aa4784b3341ef752c16e07df5d951 (diff) |
rebase to DEV300_m87
Diffstat (limited to 'sw/source/ui/docvw/romenu.cxx')
-rw-r--r-- | sw/source/ui/docvw/romenu.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/ui/docvw/romenu.cxx b/sw/source/ui/docvw/romenu.cxx index f793a7f854b7..c93409441be9 100644 --- a/sw/source/ui/docvw/romenu.cxx +++ b/sw/source/ui/docvw/romenu.cxx @@ -238,9 +238,13 @@ SwReadOnlyPopup::SwReadOnlyPopup( const Point &rDPos, SwView &rV ) : EnableItem( MN_READONLY_COPY, FALSE ); eState = pVFrame->GetBindings().QueryState( SID_EDITDOC, pState ); - if(eState < SFX_ITEM_DEFAULT || - rSh.IsGlobalDoc() && rView.GetDocShell()->IsReadOnlyUI()) + if ( + eState < SFX_ITEM_DEFAULT || + (rSh.IsGlobalDoc() && rView.GetDocShell()->IsReadOnlyUI()) + ) + { EnableItem( MN_READONLY_EDITDOC, FALSE ); + } if ( !sURL.Len() ) { |