From 3c870ad0ce6836546526aba45c07f34bfeacf804 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 23 Feb 2012 23:33:20 -0500 Subject: Use SUM function by default in case nothing is selected. --- sc/source/ui/dbgui/pvlaydlg.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sc') diff --git a/sc/source/ui/dbgui/pvlaydlg.cxx b/sc/source/ui/dbgui/pvlaydlg.cxx index 0052a448a335..1955be7cf46f 100644 --- a/sc/source/ui/dbgui/pvlaydlg.cxx +++ b/sc/source/ui/dbgui/pvlaydlg.cxx @@ -478,6 +478,8 @@ void ScDPLayoutDlg::AddField( size_t nFromIndex, ScDPFieldType eToType, const Po ScDPLabelData* p = GetLabelData(fData.mnCol); OUString aStr = p->maLayoutName; sal_uInt16 nMask = fData.mnFuncMask; + if (nMask == PIVOT_FUNC_NONE) + nMask = PIVOT_FUNC_SUM; // Use SUM by default. if (aStr.isEmpty()) { aStr = GetFuncString(nMask); -- cgit