[Kde-pim] [patch] KMail: kmheaders: avoid index out of bound causing crash

Jarosław Staniek js at iidea.pl
Fri Mar 28 20:16:14 GMT 2008


Allen Winter said the following, On 2008-03-28 20:57:
> On Friday 28 March 2008 14:45:30 Jarosław Staniek wrote:
>> for review - the crash happens sometimes when I switch between folders
> 
> The patch looks fine.
> Of course, I'm left to wonder how the index 'i' can go out of bounds.

Apparently itemAt( QPoint( 1, 1 ) ) returned 0 in KMHeaders::topItemIndex().
The area of the list view was somewhat scrolled down or so...

-- 
regards / pozdrawiam, Jaroslaw Staniek
  Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
  Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
  KDE Libraries for MS Windows (http://windows.kde.org)
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list