QHeaderView - Do not try to remove non-existing section
authorThorbjørn Lund Martsum <tmartsum@gmail.com>
Thu, 15 Dec 2011 07:11:16 +0000 (08:11 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 1 Feb 2012 15:25:37 +0000 (16:25 +0100)
commit6cab0bed1d9563628423943cbdae97e1703eacf1
tree5f6de6144a5e1567e0dd5ffb65f64c26acf2580f
parent5caa75f6654d1475dcd2d118e240b683a617d735
QHeaderView - Do not try to remove non-existing section

The end parameter passed to removeSectionsFromSpans is off by one.
removeSectionsFromSpans can currently handle/ignore it, but it is
still wrong.

Change-Id: I9148bd106504a37a5c8fd72928ab84c669eebcdb
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/widgets/itemviews/qheaderview.cpp