framework/source/uielement/langselectionstatusbarcontroller.cxx | 5 ---- sc/source/ui/docshell/docsh4.cxx | 11 ++++------ 2 files changed, 6 insertions(+), 10 deletions(-)
New commits: commit 966f075a332b38a2689dad317d5d3c3fa61a1efb Author: Henry Castro <hcas...@collabora.com> AuthorDate: Wed Jan 24 09:51:17 2024 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Fri Jan 26 19:40:54 2024 +0100 tdf#34142: update status language after the cell format language change Change-Id: Ieb97515cee469a54c5b28ac4477c9d0d78e2974c Signed-off-by: Henry Castro <hcas...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162243 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/framework/source/uielement/langselectionstatusbarcontroller.cxx b/framework/source/uielement/langselectionstatusbarcontroller.cxx index 169583a76fcd..2d56c4186883 100644 --- a/framework/source/uielement/langselectionstatusbarcontroller.cxx +++ b/framework/source/uielement/langselectionstatusbarcontroller.cxx @@ -244,10 +244,7 @@ void LangSelectionStatusbarController::LangMenu( } else if (nId == MID_LANG_DEF_MORE) { - if (bCalc) - aBuff.append( ".uno:FormatCellDialog" ); - else - aBuff.append( ".uno:LanguageStatus?Language:string=*" ); + aBuff.append( ".uno:LanguageStatus?Language:string=*" ); } else if (MID_LANG_PARA_1 <= nId && nId <= MID_LANG_PARA_9) { 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 ) {