Ignore:
Timestamp:
Mar 8, 2010, 12:52:58 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.2 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/itemviews/qtableview.cpp

    r561 r651  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    115115    } else if (old_height > span->height()) {
    116116        //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.
    118120        Q_ASSERT(it_y != index.end()); //it_y must exist since the span is in the list
    119121        while (-it_y.key() <= span->top() + old_height -1) {
Note: See TracChangeset for help on using the changeset viewer.