Changeset 1495 in josm


Ignore:
Timestamp:
2009-03-17T18:56:03+01:00 (15 years ago)
Author:
stoecker
Message:

fix #2305 - More information about this feature preset links didn't work - this and previous two patches by jttt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java

    r1492 r1495  
    382382            if(locale_text == null)
    383383                locale_text = text == null ? tr("More information about this feature") : tr(text);
    384             p.add(new UrlLabel(locale_href, locale_text), GBC.eol().anchor(GBC.WEST));
     384            String url = locale_href;
     385            if (url == null) {
     386                url = href;
     387            }
     388            if (url != null) {
     389                p.add(new UrlLabel(url, locale_text), GBC.eol().anchor(GBC.WEST));
     390            }
    385391        }
    386392        @Override public void addCommands(Collection<OsmPrimitive> sel, List<Command> cmds) {}
Note: See TracChangeset for help on using the changeset viewer.