From 7fb4fdcddca89a4191b83896a400e8835314da87 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Sun, 31 Aug 2014 21:48:12 +0200 Subject: fdo#83302 don't display read-only infobar for Base form in normal mode Change-Id: I03c32883dbf8421824069efea2318e67c8dc4313 Reviewed-on: https://gerrit.libreoffice.org/11231 Reviewed-by: Lionel Elie Mamane Tested-by: Lionel Elie Mamane --- sfx2/source/view/viewfrm.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sfx2') diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 2bf098933649..479dde2f9022 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -1353,7 +1353,13 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) SfxBindings& rBind = GetBindings(); rBind.Invalidate( SID_RELOAD ); rBind.Invalidate( SID_EDITDOC ); - if ( !xObjSh->IsReadOnly() ) + const SfxViewShell *pVSh; + const SfxShell *pFSh; + if ( !xObjSh->IsReadOnly() || + ( xObjSh->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED && + (pVSh = xObjSh->GetViewShell()) && + (pFSh = pVSh->GetFormShell()) && + !pFSh->IsDesignMode())) { // In contrast to above (TITLE_CHANGED) does the UI not // have to be updated because it was not obstructed -- cgit v1.2.3