Changeset 16450 in josm
- Timestamp:
 - 2020-05-17T18:01:01+02:00 (5 years ago)
 - File:
 - 
      
- 1 edited
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java
r16440 r16450 36 36 import java.util.ListIterator; 37 37 import java.util.Map; 38 import java.util.Objects; 38 39 39 40 import javax.swing.UIManager; … … 777 778 } else if (root instanceof Split) { 778 779 Split split = (Split) root; 779 for (Node child : split.getChildren()) { 780 if (child.getBounds().contains(x, y)) 781 return dividerAt(child, x, y); 782 } 780 return split.getChildren().stream() 781 .filter(child -> child.getBounds().contains(x, y)) 782 .map(child -> dividerAt(child, x, y)) 783 .filter(Objects::nonNull) 784 .findFirst().orElse(null); 783 785 } 784 786 return null;  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  