[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    qt-copy/src/widgets
From:       George Staikos <staikos () kde ! org>
Date:       2005-06-07 21:56:27
Message-ID: 1118181387.096694.32505.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 423235 by staikos:

Fix crash in KHTML (SIGFPE)
Patch sent to TrollTech
BUG: 106974


 M  +1 -1      qlistbox.cpp  


--- trunk/qt-copy/src/widgets/qlistbox.cpp #423234:423235
@@ -1840,7 +1840,7 @@
 */
 void QListBox::setCurrentItem( QListBoxItem * i )
 {
-    if ( !i || d->current == i )
+    if ( !i || d->current == i || numRows() == 0 )
 	return;
 
     QRect mfrect = itemRect( i );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic