Ignore:
Timestamp:
2009-01-08T15:29:55+01:00 (15 years ago)
Author:
stoecker
Message:

fixed bugs #1864 and #1979, patches by Ævar Arnfjörð Bjarmason and markb _ ordern _ com

File:
1 edited

Legend:

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

    r1169 r1213  
    200200        instance.addMouseListener(new MouseAdapter(){
    201201            private void openPopup(MouseEvent e) {
    202                 Point p = listScrollPane.getMousePosition();
    203                 if (p == null)
    204                     return; // user is faster than swing with mouse movement
    205                 int index = instance.locationToIndex(e.getPoint());
     202                Point p = e.getPoint();
     203                int index = instance.locationToIndex(p);
    206204                Layer layer = (Layer)instance.getModel().getElementAt(index);
    207205                LayerListPopup menu = new LayerListPopup(instance, layer);
Note: See TracChangeset for help on using the changeset viewer.