sc/source/ui/docshell/docsh4.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d4f34dfe26cafe8516522f7d554f38017f9c25da Author: Aron Budea <aron.bu...@collabora.com> AuthorDate: Thu Jan 9 23:17:17 2025 +1030 Commit: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> CommitDate: Wed Jan 22 13:15:28 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/+/180175 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> (cherry picked from commit 0afc406d5f0f9ac7097b3e6a38d4900adfec17c3) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180218 Reviewed-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> Tested-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index 8020cb8c7471..a00bf023c74c 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -1227,7 +1227,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") {