summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2020-02-20 14:47:13 +0100
committerAndras Timar <andras.timar@collabora.com>2020-02-25 09:28:45 +0100
commit968fe71f654937727e0708d1070ffabf90b9e527 (patch)
tree680a9cee201e141832170bbeb6a827763e6f93ed
parent71a17533e5d892bd15353d0e367a659df8912786 (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>
-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 15a2e22d8811..a7a62d2d8568 100644
--- a/sc/source/core/data/funcdesc.cxx
+++ b/sc/source/core/data/funcdesc.cxx
@@ -284,7 +284,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