Changeset 11520 in josm for trunk/src/org
- Timestamp:
- 2017-01-31T23:38:13+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java
r11044 r11520 610 610 if (e.getEventType() != HyperlinkEvent.EventType.ACTIVATED) 611 611 return; 612 if (e.getURL() == null || e.getURL().to String().startsWith(url+'#')) {612 if (e.getURL() == null || e.getURL().toExternalForm().startsWith(url+'#')) { 613 613 // Probably hyperlink event on a an A-element with a href consisting of a fragment only, i.e. "#ALocalFragment". 614 614 String fragment = getUrlFragment(e); … … 633 633 ); 634 634 } 635 } else if (e.getURL().to String().endsWith("action=edit")) {636 OpenBrowser.displayUrl(e.getURL().to String());635 } else if (e.getURL().toExternalForm().endsWith("action=edit")) { 636 OpenBrowser.displayUrl(e.getURL().toExternalForm()); 637 637 } else { 638 url = e.getURL().to String();639 openUrl( e.getURL().toString());638 url = e.getURL().toExternalForm(); 639 openUrl(url); 640 640 } 641 641 }
Note:
See TracChangeset
for help on using the changeset viewer.