mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-25 17:00:36 -09:00
Merge remote-tracking branch
'origin/GT-3219_adamopolous_drag-n-drop-off-target' into Ghidra_9.1 (fixes #1093)
This commit is contained in:
@@ -48,6 +48,10 @@ public class GTreeRenderer extends DefaultTreeCellRenderer implements GComponent
|
||||
|
||||
super.getTreeCellRendererComponent(tree, value, selected1, expanded, leaf, row, hasFocus1);
|
||||
|
||||
// Important - make sure this happens before the setBackground() call, otherwise we will
|
||||
// paint the previously dragged-over node as the drop target.
|
||||
paintDropTarget = (value == dropTarget);
|
||||
|
||||
setOpaque(true);
|
||||
setBackground(selected1 ? getBackgroundSelectionColor() : getBackgroundNonSelectionColor());
|
||||
|
||||
@@ -71,8 +75,6 @@ public class GTreeRenderer extends DefaultTreeCellRenderer implements GComponent
|
||||
|
||||
updateIconTextGap(icon, minIconWidth);
|
||||
|
||||
paintDropTarget = (value == dropTarget);
|
||||
|
||||
GTree gtree = node.getTree();
|
||||
|
||||
GTreeFilter filter = gtree == null ? null : gtree.getFilter();
|
||||
|
||||
Reference in New Issue
Block a user