sc/source/core/data/dpoutput.cxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 2c659e692a17cc10d364a2304bead9403fc6bdde
Author: Kohei Yoshida <kohei.yosh...@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);
     }
 
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to