summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-07-05 22:13:44 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-07-05 23:24:01 +0000
commit284c6681688f7075900d2351976c3611702411ce (patch)
treed14d18541c55f7e3eff897296b85733c7dffab79 /sc/source/core
parent9bd699883800fe8bb554000b769d27fd5dcdfd83 (diff)
fdo#80813 - avoid FMR by re-fetch pattern after a potential re-calculation.
Change-Id: Ib197f4cd74cd2c444a5f7c207fe2e5be14eea65d Reviewed-on: https://gerrit.libreoffice.org/10095 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/column2.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index 18aee248a752..63c5e0f02fb1 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -131,11 +131,15 @@ long ScColumn::GetNeededSize(
return 0;
}
- // conditional formatting
+ // conditional formatting
const SfxItemSet* pCondSet = pDocument->GetCondResult( nCol, nRow, nTab );
- // line break?
+ // fdo#80813 - fetching conditional result (GetCondResult) above can cause
+ // a re-calculate which can delete and re-set the pattern we fetched.
+ if (!rOptions.pPattern)
+ pPattern = pAttrArray->GetPattern( nRow );
+ // line break?
const SfxPoolItem* pCondItem;
SvxCellHorJustify eHorJust;
if (pCondSet &&