Changeset 4862 in josm
- Timestamp:
- 2012-01-23T23:23:26+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/VersionTable.java
r4779 r4862 16 16 17 17 import javax.swing.DefaultCellEditor; 18 import javax.swing.DefaultListSelectionModel;19 18 import javax.swing.JCheckBox; 20 19 import javax.swing.JLabel; … … 22 21 import javax.swing.JRadioButton; 23 22 import javax.swing.JTable; 24 import javax.swing.ListSelectionModel;25 23 import javax.swing.SwingConstants; 26 24 import javax.swing.UIManager; 27 import javax.swing.event.ListSelectionEvent;28 import javax.swing.event.ListSelectionListener;29 25 import javax.swing.event.TableModelEvent; 30 26 import javax.swing.event.TableModelListener; … … 90 86 HistoryBrowserModel.VersionTableModel model = getVersionTableModel(); 91 87 int row = rowAtPoint(evt.getPoint()); 92 if ( !model.isLatest(row)) {88 if (row > -1 && !model.isLatest(row)) { 93 89 HistoryOsmPrimitive primitive = model.getPrimitive(row); 94 90 popupMenu.prepare(primitive);
Note:
See TracChangeset
for help on using the changeset viewer.