From a18c6fe8f3f353d78f58563d8d39bf4c922712ac Mon Sep 17 00:00:00 2001 From: Mikhail Voytenko Date: Thu, 29 Jul 2010 13:49:40 +0200 Subject: [PATCH] writerfilter08ooo300: #i112415# on reload the filter should not set document readonly --- sfx2/source/view/viewfrm.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index feced28efb11..ed924623c700 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -813,6 +813,13 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) xNewObj->SetModifyPasswordEntered( sal_False ); xNewObj->SetReadOnly(); } + else if ( rReq.GetSlot() == SID_EDITDOC && bForEdit && !xNewObj->IsReadOnlyMedium() ) + { + // the filter might request setting of the document to readonly state + // but in case of SID_EDITDOC it should not happen if the document + // can be opened for editing + xNewObj->SetReadOnlyUI( sal_False ); + } if ( xNewObj->IsDocShared() ) {