[Libreoffice-commits] .: sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Mon Jan 23 19:36:14 PST 2012
sc/source/core/data/dpoutput.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 2c659e692a17cc10d364a2304bead9403fc6bdde
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date: Mon Jan 23 22:33:30 2012 -0500
fdo#45067: We need automatic number detection for date/number grouping.
diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx
index 990e212..c5bb124 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);
}
More information about the Libreoffice-commits
mailing list