summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <cmc@openoffice.org>2010-07-21 11:33:35 +0100
committerCaolán McNamara <cmc@openoffice.org>2010-07-21 11:33:35 +0100
commitdf31b7f41905931bc9b9dd07d84a353adc71d3db (patch)
tree23b0c6cea2ca2c2acb7a1d91b3c1651fb2715782 /sw
parentcbff93e77f513ad48cea0c58d5f3f72494599da3 (diff)
cmcfixes77: #i113322# silence gcc warning
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/docvw/romenu.cxx8
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() )
{