summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2024-01-24 09:51:17 -0400
committerHenry Castro <hcastro@collabora.com>2024-01-26 19:40:54 +0100
commit966f075a332b38a2689dad317d5d3c3fa61a1efb (patch)
treeeb1593b4aabdfb4b46d57b4aaa5e3a6fd3b540e3 /sc
parentb8bc9518d523cff59e238f1eefc4ce7e7c844196 (diff)
tdf#34142: update status language after the cell format language change
Change-Id: Ieb97515cee469a54c5b28ac4477c9d0d78e2974c Signed-off-by: Henry Castro <hcastro@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162243 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docsh4.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 813d86785a7a..82b874391f38 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -1252,12 +1252,11 @@ void ScDocShell::Execute( SfxRequest& rReq )
sal_Int32 nPos = 0;
if ( aLangText == "*" )
{
- SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create();
- ScTabViewShell* pSh = GetBestViewShell();
- ScopedVclPtr<VclAbstractDialog> pDlg(pFact->CreateVclDialog(pSh ? pSh->GetDialogParent() : nullptr, SID_LANGUAGE_OPTIONS));
- pDlg->Execute();
-
- rDoc.GetLanguage( eLang, eCjk, eCtl );
+ if (ScTabViewShell* pSh = GetBestViewShell())
+ {
+ pSh->ExecuteCellFormatDlg(rReq, "font");
+ pBindings->Invalidate(SID_LANGUAGE_STATUS);
+ }
}
else if ( (nPos = aLangText.indexOf(aDocLangPrefix)) != -1 )
{