[Libreoffice-commits] core.git: sc/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Mon Jan 13 14:09:22 UTC 2020


 sc/source/core/data/table2.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit b56e0d7f7fb9f1ca9295ac2ba540a3cf778324b9
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon Jan 13 15:03:10 2020 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Jan 13 15:08:46 2020 +0100

    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 <noel.grandin at collabora.co.uk>

diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 0df049aba144..f24a3459a803 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -3723,6 +3723,8 @@ void ScTable::DoAutoOutline( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SC
     bool bFound;
     ScRange aRef;
 
+    nEndCol = ClampToAllocatedColumns(nEndCol);
+
     StartOutlineTable();
 
                             // Rows


More information about the Libreoffice-commits mailing list