[Libreoffice-commits] core.git: sfx2/source

Samuel Mehrbrodt Samuel.Mehrbrodt at cib.de
Thu Feb 23 15:36:04 UTC 2017


 sfx2/source/view/viewfrm.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit aa8efc72d43c2000cb3b5571fdc6b48617eb9b94
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date:   Thu Feb 23 15:12:34 2017 +0100

    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 at cib.de>
    Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index b1fc522..f21710c 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);
 


More information about the Libreoffice-commits mailing list