diff options
Diffstat (limited to 'sc/source/core/data/table3.cxx')
-rw-r--r-- | sc/source/core/data/table3.cxx | 3 |
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 ); |