diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-23 23:33:20 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-24 00:51:42 -0500 |
commit | 3c870ad0ce6836546526aba45c07f34bfeacf804 (patch) | |
tree | de3f163fc8a125c946bb399e89d93f5f82534105 | |
parent | 780436aaf7cb3675bed8277f0b0069b43a25b908 (diff) |
Use SUM function by default in case nothing is selected.
-rw-r--r-- | sc/source/ui/dbgui/pvlaydlg.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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); |