Spreadsheet: Fixed issue #3361.

This commit is contained in:
Eivind Kvedalen
2018-07-31 00:57:23 +02:00
committed by Yorik van Havre
parent 13da3dd830
commit d2f9ab6a11
2 changed files with 23 additions and 4 deletions

View File

@@ -461,8 +461,8 @@ void Cell::setSpans(int rows, int columns)
if (rows != rowSpan || columns != colSpan) {
PropertySheet::AtomicPropertyChange signaller(*owner);
rowSpan = rows;
colSpan = columns;
rowSpan = (rows == -1 ? 1 : rows);
colSpan = (columns == -1 ? 1 : columns);
setUsed(SPANS_SET, (rowSpan != 1 || colSpan != 1) );
setUsed(SPANS_UPDATED);
}