summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorAdrien <adriendev84@gmail.com>2013-08-18 15:42:50 +0200
committerCaolán McNamara <caolanm@redhat.com>2013-08-18 13:21:48 +0000
commit1fb69ba27999606db68915fe745629b2ed42c8b1 (patch)
tree52a026d3978b7d3fc133e8fe207cd8fe121a066e /sw
parent1cfbfdbb4dfeaacab3764d5aff18ee5ea1109ea6 (diff)
Fix bug 47680, accept change is not displayed if file is protected
Change-Id: Ic37d96c0f3cad6eba9a4e9327463f70ebbbfd317 Reviewed-on: https://gerrit.libreoffice.org/5501 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/uiview/viewstat.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/ui/uiview/viewstat.cxx b/sw/source/ui/uiview/viewstat.cxx
index 47c6a5f8d1e6..147ae0e9f693 100644
--- a/sw/source/ui/uiview/viewstat.cxx
+++ b/sw/source/ui/uiview/viewstat.cxx
@@ -271,6 +271,8 @@ void SwView::GetState(SfxItemSet &rSet)
SwPaM *pCursor = m_pWrtShell->GetCrsr();
if (0 == pDoc->GetRedline(*pCursor->Start(), 0))
rSet.DisableItem(nWhich);
+ if (GetDocShell()->HasChangeRecordProtection())
+ rSet.DisableItem(nWhich);
}
break;