Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > befcda80c1a164e8b5d57687719ec9f0 > files > 3

qt4-4.2.3-3mdv2007.1.src.rpm

--- qt-x11-opensource-src-4.2.3/src/gui/itemviews/qlistview.cpp--	2007-03-17 21:45:10.000000000 +0100
+++ qt-x11-opensource-src-4.2.3/src/gui/itemviews/qlistview.cpp	2007-03-17 21:45:46.000000000 +0100
@@ -1464,7 +1464,8 @@
 {
     Q_D(QListView);
     if (d->model->columnCount(d->root) > 0) { // no columns means no contents
-        if (layoutMode() == SinglePass)
+        d->batchStartRow = 0;
+	if (layoutMode() == SinglePass)
             d->doItemsLayout(d->model->rowCount(d->root)); // layout everything
         else if (!d->batchLayoutTimer.isActive())
             d->batchLayoutTimer.start(0, this); // do a new batch as fast as possible