From 1f4009e98caf9ea878b89ae1d93934540a91e753 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 29 Oct 2024 13:00:27 +0200 Subject: fix bug in XclExpXF::Init (tdf#163667 related) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit looks like a copy/paste error from commit d0f8daa0980ba8e403b32006831657c5a0a4ea17 Author: Eike Rathke Date: Wed Aug 22 13:16:19 2018 +0200 Resolves: tdf#73063 preserve and roundtrip LCID from/to Excel number formats Found while debugging the file in the associated bug. Change-Id: I6816290c90d6271f43416a7417cb2a0341da928c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175753 Tested-by: Jenkins CollaboraOffice Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- sc/source/filter/excel/xestyle.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx index 678327bd1a58..94ab1c1049cd 100644 --- a/sc/source/filter/excel/xestyle.cxx +++ b/sc/source/filter/excel/xestyle.cxx @@ -2144,7 +2144,7 @@ void XclExpXF::Init( const SfxItemSet& rItemSet, sal_Int16 nScript, // number format if (nForceScNumFmt != NUMBERFORMAT_ENTRY_NOT_FOUND) - mnXclNumFmt = nForceScNumFmt; + mnScNumFmt = nForceScNumFmt; else { // Built-in formats of dedicated languages may be attributed using the -- cgit