This commit is contained in:
Eugene Zhuravlev
2010-10-21 19:00:00 +04:00
parent 0b26d50083
commit 54dfd905a8
@@ -175,8 +175,8 @@ public class Tree extends JTree implements ComponentWithEmptyText, ComponentWith
TreePath[] paths = getSelectionModel().getSelectionPaths();
if (paths != null) {
for (TreePath each : paths) {
Rectangle selection = getPathBounds(each);
if (g.getClipBounds().intersects(selection) || g.getClipBounds().contains(selection)) {
final Rectangle selection = getPathBounds(each);
if (selection != null && (g.getClipBounds().intersects(selection) || g.getClipBounds().contains(selection))) {
if (myBusy) {
Rectangle busyIconBounds = myBusyIcon.getBounds();
if (selection.contains(busyIconBounds) || selection.intersects(busyIconBounds)) {