This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 223993

Summary: Wrong event from Outline after expanding node
Product: platform Reporter: sedlakf
Component: Outline&TreeTableAssignee: Martin Entlicher <mentlicher>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description sedlakf 2012-12-18 17:15:41 UTC
Possibly the same case as in

Having Outline with a large model (FixedHeightLayoutCache), expanding a node fires an event with firstRow=0 and lastRow=0 of type INSERT. This then produces a call to SelectionModel.insertIndexInterval(0, 1, true) which shifts the whole selection.

My assumption about the cause follows:

EventBroadcaster.translateEvent method checks for firstRow == -1. Before, it adds one to the result. As FixedHeightLayoutCache returns -1 for collapsed nodes, it seems the condition firstRow == -1 can never be true with FixedHeightLayoutCache.