[Bug 76558] Kdevelop crashes by Event onClick Documentation SiteBar
Jonathan Solomon
jsolomon at comcast.net
Sun Mar 21 02:34:04 UTC 2004
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=76558
------- Additional Comments From jsolomon comcast net 2004-03-21 02:33 -------
I've encountered a very similar problem except in QWindowsStyle::drawComplexControl(). Causes crashes on open or close of a new project only when the documentation tab is showing. The following patch (against Qt) is a band-aid for the problem. Please pass it on to the Trolltech guys if you think it worthwhile. (debug kernel 2.6.3.2.1.258-2-1, KDE 3.2.1, Fedora Core 2 test 1
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --disable-libunwind-exceptions --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.3.3 20040311 (Red Hat Linux 3.3.3-3)
--- qwindowsstyle.cpp 2004-02-18 08:22:55.000000000 -0500
+++ qwindowsstyle.cpp.backup 2004-03-20 20:09:52.576762328 -0500
@ -1624,7 +1624,16 @
} else {
int linetop = 0, linebot = 0;
+ int numchildren = 0;
// each branch needs at most two lines, ie. four end points
dotoffset = (item->itemPos() + item->height() - y) %2;
- dotlines.resize( item->childCount() * 4 );
+ numchildren = item->childCount();
+ if (numchildren < 0) {
+ printf("QWindowsStyle::drawComplexControl: Bogus number of child items (%d) in listview\n",numchildren);
+ numchildren = 0;
+ }
+ dotlines.resize( numchildren * 4 );
+ if (numchildren == 0) {
+ child = NULL;
+ }
c = 0;
More information about the KDevelop-devel
mailing list