[Libreoffice-commits] core.git: sc/source
Arul Michael
arul71.m at gmail.com
Fri Jul 29 23:29:49 UTC 2016
sc/source/core/data/table3.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 88a5f7d56f9e6040450fb959ce8d091a50edcfde
Author: Arul Michael <arul71.m at gmail.com>
Date: Fri Jul 29 17:14:46 2016 +0530
tdf#88793 EDITING, subtotals don't apply formatting
Change-Id: I29f33287715ccdee758c1e17dfabad1505049e1a
Reviewed-on: https://gerrit.libreoffice.org/27680
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Eike Rathke <erack at redhat.com>
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index efe0c27..6da1c7c 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 );
More information about the Libreoffice-commits
mailing list