Ignore:
Timestamp:
2007-02-15T17:32:41+01:00 (17 years ago)
Author:
imi
Message:
  • fixed Bug with AnnotationPresets not loading values-tag properly
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java

    r201 r202  
    181181                instance.addMouseListener(new MouseAdapter(){
    182182                        private void openPopup(MouseEvent e) {
     183                                Point p = listScrollPane.getMousePosition();
     184                                if (p == null)
     185                                        return; // user is faster than swing with mouse movement
    183186                                int index = instance.locationToIndex(e.getPoint());
    184187                                Layer layer = (Layer)instance.getModel().getElementAt(index);
    185188                                LayerListPopup menu = new LayerListPopup(instance, layer);
    186                                 Point p = listScrollPane.getMousePosition();
    187189                                menu.show(listScrollPane, p.x, p.y-3);
    188190                        }
Note: See TracChangeset for help on using the changeset viewer.