summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2019-01-23 14:12:47 +0100
committerLars Knoll <lars.knoll@qt.io>2019-02-09 08:01:08 +0000
commit4247d7c5a0c9a5133245b935eef017149f49de87 (patch)
treea9b5fede17d316979479cd42a1bba7aa2427918d /tests/auto/gui
parentc066656aff4841f9095e77754fa7533f7bbbb66a (diff)
Fix QTextTable:insertRows() for tables with spanning cells
Don't resize the height of cells spanning several columns multiple times. Fixes: QTBUG-36713 Change-Id: I5eb45892f2008e6a4f85745b56efd04323e25673 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'tests/auto/gui')
-rw-r--r--tests/auto/gui/text/qtexttable/tst_qtexttable.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/gui/text/qtexttable/tst_qtexttable.cpp b/tests/auto/gui/text/qtexttable/tst_qtexttable.cpp
index 29eef506bf..22f00c677d 100644
--- a/tests/auto/gui/text/qtexttable/tst_qtexttable.cpp
+++ b/tests/auto/gui/text/qtexttable/tst_qtexttable.cpp
@@ -431,6 +431,12 @@ void tst_QTextTable::insertRows()
table->insertRows(5, 2);
QCOMPARE(table->rows(), 7);
+ table = cursor.insertTable(5,5);
+ table->mergeCells(0,0,3,3);
+ table->insertRows(2,1);
+
+ QCOMPARE(table->rows(), 6);
+
}
void tst_QTextTable::deleteInTable()