From 41a1272402c13b8993d4be389204f19d4218caf5 Mon Sep 17 00:00:00 2001 From: Luboš Luňák <l.lunak@collabora.com> Date: Fri, 18 Feb 2022 08:48:35 +0100 Subject: remove MAXCOLCOUNT from calc pivot implementation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It appears that PIVOT_DATA_FIELD is just a custom special value that's outside of the valid column range, but otherwise the value doesn't matter, and -1 is generic. Change-Id: Ieac1d4e3391f76350dc420e6b2ae9ed9f35d35f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130124 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com> --- sc/inc/pivot.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc/inc/pivot.hxx b/sc/inc/pivot.hxx index 41a48fa0e3db..a0d1883ada60 100644 --- a/sc/inc/pivot.hxx +++ b/sc/inc/pivot.hxx @@ -51,7 +51,7 @@ #include <com/sun/star/sheet/DataPilotFieldLayoutInfo.hpp> #include <com/sun/star/sheet/DataPilotFieldAutoShowInfo.hpp> -#define PIVOT_DATA_FIELD (MAXCOLCOUNT) +#define PIVOT_DATA_FIELD (SCCOL(-1)) struct SC_DLLPUBLIC ScDPName { -- cgit