QTableView: fix spans corruption when removing spans.
authorOlivier Goffart <ogoffart@trolltech.com>
Wed, 7 Apr 2010 11:44:20 +0000 (13:44 +0200)
committerOlivier Goffart <ogoffart@trolltech.com>
Wed, 7 Apr 2010 12:21:02 +0000 (14:21 +0200)
commit2883580a3e10df16789ba1c9ee67507e508b95c1
tree73b1986c6287e0d5d1aebe6047c467de29ade964
parent7be934e98dd75d2c8902df4e88e2a1aceab9789f
QTableView: fix spans corruption when removing spans.

- We should not do -1 after erasing, as it is done later on.
- We should consider the 0 height even if it is not the last span.
- Added an assert.

Task-number: QTBUG-9631
Reviewed-by: Gabriel
src/gui/itemviews/qtableview.cpp
tests/auto/qtableview/tst_qtableview.cpp