Community
Participate
Working Groups
In our nightly test an error occurs when selecting elements at the end of a long list. Our list has 200 elements and the test should select 7 of them. The final element to be selected is the 200th. Under Windows the test runs without any problems; under Linux the test always selects the 199th element instead of the 200th element. It would seem that the calculation of the element size is faulty under Linux, resulting in the selection of the completely wrong entry after a certain point.
This appears to be a problem in GTK. We tested this on a smaller list where the entries had a height of 25 pixels (measured with "KRuler"). Calling List.getItemHeight() for the list returned 23. This means that the calculation gets progressively worse the longer the list is. At some point, depending on the list size and the height of the items, the wrong item is selected at some point. This could be reproduced with: * SWT 3.5.0.v3550b * GTK 2.12.1-5 But not with: * SWT 3.5.0.v3550b * GTK 2.4.13-22 This would appear to suggest that it's a problem with specific GTK version(s).