Changeset 6038 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
- Timestamp:
- 2013-06-28T17:39:49+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r6025 r6038 6 6 import java.awt.BorderLayout; 7 7 import java.awt.Color; 8 import java.awt.Component; 8 9 import java.awt.event.ActionEvent; 9 10 import java.awt.event.KeyEvent; … … 20 21 import javax.swing.AbstractListModel; 21 22 import javax.swing.DefaultListSelectionModel; 23 import javax.swing.FocusManager; 22 24 import javax.swing.JComponent; 23 25 import javax.swing.JList; … … 189 191 popupMenuHandler.setPrimitives(sel); 190 192 193 Component focused = FocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); 194 191 195 //update highlights 192 if (Main.isDisplayingMapView()) { 193 highlightHelper.highlightOnly(sel); 194 Main.map.mapView.repaint(); 196 if (focused==displaylist && Main.isDisplayingMapView()) { 197 if (highlightHelper.highlightOnly(sel)) { 198 Main.map.mapView.repaint(); 199 } 195 200 } 196 201 }
Note:
See TracChangeset
for help on using the changeset viewer.
