Changeset 16591 in josm for trunk/src/org
- Timestamp:
- 2020-06-10T22:37:20+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowser.java
r16395 r16591 7 7 import java.awt.Dimension; 8 8 import java.util.Arrays; 9 import java.util.Objects; 9 10 10 11 import javax.swing.JPanel; … … 114 115 */ 115 116 public void populate(History history) { 117 boolean samePrimitive = model.getHistory() != null && Objects.equals(model.getHistory().getPrimitiveId(), history.getPrimitiveId()); 116 118 model.setHistory(history); 119 if (samePrimitive) { 120 // no need to rebuild the UI 121 return; 122 } 117 123 118 124 tpViewers.removeAll();
Note:
See TracChangeset
for help on using the changeset viewer.