summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-02-23 15:12:34 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-02-23 15:35:33 +0000
commitaa8efc72d43c2000cb3b5571fdc6b48617eb9b94 (patch)
treee6c7df22af47e2d14fbfa3d4970b1c8586530e3b /sfx2
parent544104b957e72cfb5701cd949bca5184324d20ed (diff)
tdf#101652 No infobar when doc attr is readonly
One can set the a document attribute to open the doc read-only. In this case the read-only infobar should not be shown. Change-Id: I92b78dc3e20ccf0d258cdf3e4a79530f87a2e311 Reviewed-on: https://gerrit.libreoffice.org/34581 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewfrm.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index b1fc522f32eb..f21710cf058e 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1213,9 +1213,9 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
const SfxViewShell *pVSh;
const SfxShell *pFSh;
- if ( m_xObjSh->IsReadOnly() &&
+ if ( m_xObjSh->IsOriginallyReadOnlyMedium() &&
( m_xObjSh->GetCreateMode() != SfxObjectCreateMode::EMBEDDED ||
- ( pVSh = m_xObjSh->GetViewShell()) && (pFSh = pVSh->GetFormShell()) && pFSh->IsDesignMode()))
+ (( pVSh = m_xObjSh->GetViewShell()) && (pFSh = pVSh->GetFormShell()) && pFSh->IsDesignMode())))
{
bool bSignPDF = IsSignPDF(m_xObjSh);