sc/source/ui/docshell/docsh4.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d846849f17cd1f85a51d510dabdfffbb3aeccc64 Author: Aron Budea <aron.bu...@collabora.com> AuthorDate: Thu Jan 9 23:17:17 2025 +1030 Commit: Adolfo Jayme Barrientos <fit...@ubuntu.com> CommitDate: Tue Jan 14 13:18:17 2025 +0100 tdf#164123 Changing language on a selection of cells resets formatting Change-Id: I580ef23d19a62e2074e098e84e5b50831a6705cc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180016 Reviewed-by: Henry Castro <hcas...@collabora.com> Tested-by: Jenkins (cherry picked from commit 202332062d245fe394f01236cb56e04083e01141) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180176 Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index c1ee001cf393..b788bae90635 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -1219,7 +1219,7 @@ void ScDocShell::Execute( SfxRequest& rReq ) { const SfxItemSet& rOldSet = pSelAttrs->GetItemSet(); SfxItemPool* pItemPool = rOldSet.GetPool(); - auto pNewSet = std::make_shared<SfxItemSet>(rOldSet); + auto pNewSet = std::make_shared<SfxItemSet>(*pItemPool); if (aLangText == "LANGUAGE_NONE") {