sc/source/ui/docshell/docsh4.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 6449174f8fd648952ed6b27a1fbe42ef060bdcf8
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Wed Apr 20 15:58:47 2022 +0200
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Thu Apr 21 11:49:55 2022 +0200

    Prevent save interception when un-sharing Calc doc
    
    Follow-up to bfc43aad0e8eb90e9d3495b940bc2283081f04c6
    
    Change-Id: I0b4562e8a41377839e78c5e471f36eed0a52d5bf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133216
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
    (cherry picked from commit 8ac35ace9fca1e0d348e5f9c1ee777458661338c)

diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 9c04bae44b0f..2487db7255d4 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -1090,10 +1090,10 @@ void ScDocShell::Execute( SfxRequest& rReq )
 
                                             EnableSharedSettings( false );
 
-                                            if ( pBindings )
-                                            {
-                                                pBindings->ExecuteSynchron( 
SID_SAVEDOC );
-                                            }
+                                            // Do *not* use dispatch mechanism 
in this place - we don't want others (extensions etc.) to intercept this.
+                                            uno::Reference<frame::XStorable> 
xStorable2(
+                                                GetModel(), 
uno::UNO_QUERY_THROW);
+                                            xStorable2->store();
 
                                             ScTabView* pTabView = 
dynamic_cast< ScTabView* >( pViewData->GetView() );
                                             if ( pTabView )

Reply via email to