diff options
-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); |