- Timestamp:
- 2016-05-10T20:06:41+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r10173 r10176 54 54 import javax.swing.JSlider; 55 55 import javax.swing.ListSelectionModel; 56 import javax.swing.MutableComboBoxModel; 56 57 import javax.swing.SwingConstants; 57 58 import javax.swing.event.ChangeEvent; … … 310 311 } 311 312 313 MutableComboBoxModel<GpxDataWrapper> model = (MutableComboBoxModel<GpxDataWrapper>) cbGpx.getModel(); 312 314 loadedGpxData.add(data); 313 315 if (gpxLst.get(0).file == null) { 314 316 gpxLst.remove(0); 315 } 316 gpxLst.add(new GpxDataWrapper(sel.getName(), data, sel)); 317 model.removeElementAt(0); 318 } 319 GpxDataWrapper elem = new GpxDataWrapper(sel.getName(), data, sel); 320 gpxLst.add(elem); 321 model.addElement(elem); 317 322 cbGpx.setSelectedIndex(cbGpx.getItemCount() - 1); 318 323 } finally {
Note:
See TracChangeset
for help on using the changeset viewer.