summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArul Michael <arul71.m@gmail.com>2016-07-29 17:14:46 +0530
committerEike Rathke <erack@redhat.com>2016-07-29 23:29:16 +0000
commit88a5f7d56f9e6040450fb959ce8d091a50edcfde (patch)
tree4c08b37c72f38419d655b57cd9b1226cd7aaab96
parent916a11d26cb74da9dd534e07b35737def6cbf54a (diff)
tdf#88793 EDITING, subtotals don't apply formatting
Change-Id: I29f33287715ccdee758c1e17dfabad1505049e1a Reviewed-on: https://gerrit.libreoffice.org/27680 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r--sc/source/core/data/table3.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index efe0c276494e..6da1c7cfc140 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -2142,9 +2142,10 @@ bool ScTable::DoSubTotals( ScSubTotalParam& rParam )
aArr.AddOpCode( ocStop );
ScFormulaCell* pCell = new ScFormulaCell(
pDocument, ScAddress(nResCols[nResult], iEntry->nDestRow, nTab), aArr);
+ if ( rParam.bIncludePattern )
+ pCell->SetNeedNumberFormat(true);
SetFormulaCell(nResCols[nResult], iEntry->nDestRow, pCell);
-
if ( nResCols[nResult] != nGroupCol[iEntry->nGroupNo] )
{
ApplyStyle( nResCols[nResult], iEntry->nDestRow, *pStyle );