[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: QTreeView bug (creating TT track and qt-copy patch)
From: "=?UTF-8?Q?Rafael_Fern=C3=A1ndez_L=C3=B3pez?=" <ereslibre () gmail ! com>
Date: 2007-09-26 2:38:09
Message-ID: 93f85fee0709251938l1252a719m8717a6740093516 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (text/plain)]
Hey all,
Working with Dolphin I've found out that on QTreeView there is a small bug.
On some point if the smooth scrolling (scroll by pixels) is enabled we
get a division by zero.
Can I commit the attached patch to qt-copy for now ?
Bye,
Rafael Fernández López.
["fixTreeViewCrash.diff" (text/x-diff)]
Index: src/gui/itemviews/qtreeview.cpp
===================================================================
--- src/gui/itemviews/qtreeview.cpp (revisión: 716358)
+++ src/gui/itemviews/qtreeview.cpp (copia de trabajo)
@@ -2972,6 +2972,9 @@
}
// ScrollMode == ScrollPerPixel
if (uniformRowHeights) {
+ if (!defaultItemHeight)
+ return -1;
+
if (offset)
*offset = -(value % defaultItemHeight);
return value / defaultItemHeight;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic