diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-23 22:33:30 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-23 22:36:24 -0500 |
commit | 2c659e692a17cc10d364a2304bead9403fc6bdde (patch) | |
tree | 49ad0c551c9c3b8e856ab6963e473d229fdf79a8 /sc | |
parent | f8214f0f1d66c6b96b3663dcb3cd71280bcd0d39 (diff) |
fdo#45067: We need automatic number detection for date/number grouping.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/dpoutput.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx index 990e2126d7ed..c5bb1248d07a 100644 --- a/sc/source/core/data/dpoutput.cxx +++ b/sc/source/core/data/dpoutput.cxx @@ -795,10 +795,11 @@ void ScDPOutput::HeaderCell( SCCOL nCol, SCROW nRow, SCTAB nTab, if ( nFlags & sheet::MemberResultFlags::HASMEMBER ) { - // Avoid unwanted automatic format detection. + // We need automatic number format detection here. Date and number + // grouping functionality depend on it. ScSetStringParam aParam; - aParam.mbDetectNumberFormat = false; - aParam.mbSetTextCellFormat = true; + aParam.mbDetectNumberFormat = true; + aParam.mbSetTextCellFormat = false; pDoc->SetString(nCol, nRow, nTab, rData.Caption, &aParam); } |