sc/source/ui/view/tabvwsh3.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 27fa859bb85ba7ac5b8cb22db5ae85750c7effba
Author:     Heiko Tietze <heiko.tie...@documentfoundation.org>
AuthorDate: Thu Jul 27 11:08:35 2023 +0200
Commit:     Heiko Tietze <heiko.tie...@documentfoundation.org>
CommitDate: Fri Aug 18 09:21:23 2023 +0200

    Resolves tdf#156357 - Submit Show Formula to document
    
    Change-Id: Ic893e573b2409342d61877313a3b60e83bb13690
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154984
    Tested-by: Jenkins
    Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org>

diff --git a/sc/source/ui/view/tabvwsh3.cxx b/sc/source/ui/view/tabvwsh3.cxx
index 7395325f775c..255dbed88508 100644
--- a/sc/source/ui/view/tabvwsh3.cxx
+++ b/sc/source/ui/view/tabvwsh3.cxx
@@ -721,6 +721,8 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
                 ScViewOptions aSetOpts = rOpts;
                 aSetOpts.SetOption( VOPT_FORMULAS, bFormulaMode );
                 rViewData.SetOptions( aSetOpts );
+                ScDocument& rDoc = rViewData.GetDocument();
+                rDoc.SetViewOptions(aSetOpts);
 
                 rViewData.GetDocShell()->PostPaintGridAll();
 

Reply via email to