- Timestamp:
- 2009-12-01T09:19:01+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/history
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r2512 r2556 438 438 439 439 public HistoryOsmPrimitive getPrimitive(int row) { 440 return history.get(row);440 return isLatest(row) ? latest : history.get(row); 441 441 } 442 442 -
trunk/src/org/openstreetmap/josm/gui/history/VersionTable.java
r2512 r2556 67 67 public void mouseClicked(MouseEvent e) { 68 68 switch(e.getClickCount()) { 69 69 case 2: handleDoubleClick(e); break; 70 70 } 71 71 } … … 91 91 row = rowAtPoint(evt.getPoint()); 92 92 } 93 HistoryOsmPrimitive primitive = model.getPrimitive(row); 94 popupMenu.prepare(primitive); 95 popupMenu.show(evt.getComponent(), evt.getX(), evt.getY()); 93 if (!model.isLatest(row)) { 94 HistoryOsmPrimitive primitive = model.getPrimitive(row); 95 popupMenu.prepare(primitive); 96 popupMenu.show(evt.getComponent(), evt.getX(), evt.getY()); 97 } 96 98 } 97 99
Note:
See TracChangeset
for help on using the changeset viewer.