sc/source/core/tool/interpr3.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit dd350f02992867aefcab88f332ff1c508b5924c9 Author: Winfried Donkers <winfrieddonk...@libreoffice.org> Date: Sun Jan 1 11:57:34 2017 +0100 tdf#105026 Remove wrong constraint in PERMUTATIONA. With permutations with repetitions, argument selection may be larger than argument elements. Probably inadvertently copied from PERMUT; has been there from pre-git. Change-Id: Icdee18eca647fb278f140630e45844684a1e3046 Reviewed-on: https://gerrit.libreoffice.org/32569 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Eike Rathke <er...@redhat.com> (cherry picked from commit 25625f18a282209235214674f2b81604ecd067ad) Reviewed-on: https://gerrit.libreoffice.org/32704 diff --git a/sc/source/core/tool/interpr3.cxx b/sc/source/core/tool/interpr3.cxx index 1b6a367..5e73022 100644 --- a/sc/source/core/tool/interpr3.cxx +++ b/sc/source/core/tool/interpr3.cxx @@ -1209,7 +1209,7 @@ void ScInterpreter::ScPermutationA() { double k = ::rtl::math::approxFloor(GetDouble()); double n = ::rtl::math::approxFloor(GetDouble()); - if (n < 0.0 || k < 0.0 || k > n) + if (n < 0.0 || k < 0.0) PushIllegalArgument(); else PushDouble(pow(n,k)); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits