diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/gui/text/qtexttable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtexttable.cpp b/src/gui/text/qtexttable.cpp index 683ad8ac352..ff8644b5302 100644 --- a/src/gui/text/qtexttable.cpp +++ b/src/gui/text/qtexttable.cpp @@ -724,7 +724,7 @@ void QTextTable::insertColumns(int pos, int num) if (i == d->nRows - 1 && pos == d->nCols) { cell = d->fragment_end; } else { - int logicalGridIndexBeforePosition = pos > 0 + int logicalGridIndexBeforePosition = pos > 0 || i > 0 ? d->findCellIndex(d->grid[i*d->nCols + pos - 1]) : -1; |
