summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2020-02-20 14:47:13 +0100
committerMarco Cecchetti <marco.cecchetti@collabora.com>2020-03-06 10:44:34 +0100
commitde81e89b25c710173852b1bdebc1d6f96fcd2812 (patch)
tree1edb638a5fee0fbf4cd54ee86733bbf147265fc3 /sc
parent234a15d788adbb75317554b516acb3c8f113ece7 (diff)
formula manager: wrong category returned by ScFuncDesc::getCategory
In the function manager the index associated to each category starts from 0 while in ScFuncDesc starts from 1 (data member ScFuncDesc::nCategory) Change-Id: I92d0cd2a1a2871785e45faafd797dcf3a500bec7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89198 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Dennis Francis <dennis.francis@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90072 Tested-by: Jenkins Reviewed-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/funcdesc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/funcdesc.cxx b/sc/source/core/data/funcdesc.cxx
index 89e07465ea67..2a3f4219eae1 100644
--- a/sc/source/core/data/funcdesc.cxx
+++ b/sc/source/core/data/funcdesc.cxx
@@ -283,7 +283,7 @@ OUString ScFuncDesc::getFunctionName() const
const formula::IFunctionCategory* ScFuncDesc::getCategory() const
{
- return ScGlobal::GetStarCalcFunctionMgr()->getCategory(nCategory);
+ return ScGlobal::GetStarCalcFunctionMgr()->getCategory(nCategory - 1);
}
OUString ScFuncDesc::getDescription() const