summaryrefslogtreecommitdiff
path: root/sc/source/core/data/column3.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-02-24 09:20:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-02-24 12:37:38 +0000
commit3900f16e6939ba40f41b3ccd56a28f8275de318d (patch)
treec5c473ea3c5f95f8c661536743f004d6e35dd93d /sc/source/core/data/column3.cxx
parent8429f5ca376196f1f26c6729cd2559a8a246b9da (diff)
improved fix for CppunitTest_sc_uicalc
Revert the previous fix (commit 0714dfe7fdb0cd3a49d4eb0e771da8eb4aa84d7a) and implement a better fix, was just a stale pointer Change-Id: I34006c2f387e2a16bcecef56ac9fb46a9669ebbe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147620 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core/data/column3.cxx')
-rw-r--r--sc/source/core/data/column3.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index d92318134098..b0e22f98b3d1 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -867,6 +867,8 @@ bool ScColumn::UpdateScriptType( sc::CellTextAttr& rAttr, SCROW nRow, sc::CellSt
SvNumberFormatter* pFormatter = rDocument.GetFormatTable();
+ // fetch the pattern again, it might have changed under us
+ pPattern = GetPattern(nRow);
const Color* pColor;
sal_uInt32 nFormat = pPattern->GetNumberFormat(pFormatter, pCondSet);
OUString aStr = ScCellFormat::GetString(aCell, nFormat, &pColor, *pFormatter, rDocument);