src/gui/itemviews/qtableview.cpp
branchRCL_3
changeset 5 d3bac044e0f0
parent 4 3b1da2848fc7
child 8 3f74d0d4af4c
equal deleted inserted replaced
4:3b1da2848fc7 5:d3bac044e0f0
   112                 break;
   112                 break;
   113             --it_y;
   113             --it_y;
   114         }
   114         }
   115     } else if (old_height > span->height()) {
   115     } else if (old_height > span->height()) {
   116         //remove the span from all the subspans lists that intersect the columns not covered anymore
   116         //remove the span from all the subspans lists that intersect the columns not covered anymore
   117         Index::iterator it_y = index.lowerBound(qMin(-span->bottom(), 0));
   117         Index::iterator it_y = index.lowerBound(-span->bottom());
       
   118         if (it_y == index.end())
       
   119             it_y = index.find(-span->top());    // This is the only span remaining and we are deleting it.
   118         Q_ASSERT(it_y != index.end()); //it_y must exist since the span is in the list
   120         Q_ASSERT(it_y != index.end()); //it_y must exist since the span is in the list
   119         while (-it_y.key() <= span->top() + old_height -1) {
   121         while (-it_y.key() <= span->top() + old_height -1) {
   120             if (-it_y.key() > span->bottom()) {
   122             if (-it_y.key() > span->bottom()) {
   121                 (*it_y).remove(-span->left());
   123                 (*it_y).remove(-span->left());
   122                 if (it_y->isEmpty()) {
   124                 if (it_y->isEmpty()) {