From 94b6adc7eac7e5346c0432d606951ee0b1f9072e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 13 Jan 2020 15:03:10 +0200 Subject: tdf#129908 Crash at Data > Group and outlone > AutoOutline regression from commit 7282014e362a1529a36c88eb308df8ed359c2cfa tdf#50916 Makes numbers of columns dynamic. Change-Id: Ie0eff58c7db5a3c85cfea480ca1fea5767fd8cfb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86683 Tested-by: Jenkins Reviewed-by: Noel Grandin (cherry picked from commit b56e0d7f7fb9f1ca9295ac2ba540a3cf778324b9) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86693 --- sc/source/core/data/table2.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sc/source/core') diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 1f62b1a9418d..f5143b703687 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -3682,6 +3682,8 @@ void ScTable::DoAutoOutline( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SC bool bFound; ScRange aRef; + nEndCol = ClampToAllocatedColumns(nEndCol); + StartOutlineTable(); // Rows -- cgit v1.2.3