Ignore:
Timestamp:
2020-05-17T15:49:49+02:00 (4 years ago)
Author:
GerdP
Message:

fix #19252: Crashreport when mouse is near split pane
revert changes in MultiSplitLayout from r16438, makes JOSM unusable
Don't know why the new code doesn't work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java

    r16438 r16440  
    777777        } else if (root instanceof Split) {
    778778            Split split = (Split) root;
    779             return split.getChildren().stream()
    780                     .filter(child -> child.getBounds().contains(x, y))
    781                     .map(child -> dividerAt(child, x, y))
    782                     .findFirst().orElse(null);
     779            for (Node child : split.getChildren()) {
     780                if (child.getBounds().contains(x, y))
     781                    return dividerAt(child, x, y);
     782            }
    783783        }
    784784        return null;
Note: See TracChangeset for help on using the changeset viewer.