Changeset 11059 in josm


Ignore:
Timestamp:
2016-09-27T15:40:10+02:00 (8 years ago)
Author:
simon04
Message:

fix #13709 - Copyright is not clickable at the map in the history dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java

    r11053 r11059  
    77import java.awt.GridBagLayout;
    88import java.awt.Insets;
     9import java.awt.event.MouseAdapter;
     10import java.awt.event.MouseEvent;
    911
    1012import javax.swing.BorderFactory;
     
    338340            setTileSource(new OsmTileSource.Mapnik()); // for attribution
    339341            setBorder(BorderFactory.createLineBorder(Color.DARK_GRAY));
     342            addMouseListener(new MouseAdapter() {
     343                @Override
     344                public void mouseClicked(MouseEvent e) {
     345                    if (e.getButton() == MouseEvent.BUTTON1) {
     346                        getAttribution().handleAttribution(e.getPoint(), true);
     347                    }
     348                }
     349            });
    340350        }
    341351
Note: See TracChangeset for help on using the changeset viewer.