| Summary: | Selection Not Cleared when deleting first row | ||
|---|---|---|---|
| Product: | [Technology] NatTable | Reporter: | Thomas M??der <t.s.maeder> |
| Component: | Core | Assignee: | Stephan Wahlbrink <sw> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | dirk.fauth, sw |
| Version: | 0.9.0 | ||
| Target Milestone: | 1.0.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=383059 | ||
| Whiteboard: | |||
|
Description
Thomas M??der
I believe the bug was introduced by fixing bug 383059 . The code in SelectionLayerStructuralChangeEventHandler.handleLayerEvent(...) creates the relevant range like this: Range changedRange = new Range(rectangle.y, rectangle.y + rectangle.height - 1); This used to work, since 0-lenght ranges would overlap with other ranges. They don't anymore, and correctly so. Not sure what the right fix is. Actually, just not doing the "-1" at the end seems to work for me. You are right, the end index of a Range is exlusive. Committed f61dfca7d62f960066ad1c94c5fadf51287e1864 CLOSED |