Kaydet (Commit) ab862e06 authored tarafından Caolán McNamara's avatar Caolán McNamara

crashtesting: failure on import of gnome545630-1.xlsx

since...

commit 7282014e
Date:   Fri Feb 1 15:15:16 2019 +0100

    tdf#50916 Makes numbers of columns dynamic

Change-Id: Ib42b770282753350b9c4016fe7c9f57f68e6c209
Reviewed-on: https://gerrit.libreoffice.org/70603
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 0013f21e
......@@ -338,12 +338,13 @@ void RangeColumnSpanSet::executeColumnAction(ScDocument& rDoc, sc::ColumnSpanSet
{
for (SCTAB nTab = range.aStart.Tab(); nTab <= range.aEnd.Tab(); ++nTab)
{
for (SCCOL nCol = range.aStart.Col(); nCol <= range.aEnd.Col(); ++nCol)
{
ScTable* pTab = rDoc.FetchTable(nTab);
if (!pTab)
continue;
ScTable* pTab = rDoc.FetchTable(nTab);
if (!pTab)
continue;
SCCOL nEndCol = pTab->ClampToAllocatedColumns(range.aEnd.Col());
for (SCCOL nCol = range.aStart.Col(); nCol <= nEndCol; ++nCol)
{
if (!ValidCol(nCol))
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment