Changeset 1433 in josm


Ignore:
Timestamp:
2009-02-21T14:33:19+01:00 (14 years ago)
Author:
stoecker
Message:

fixed #2210

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/HistoryInfoAction.java

    r1230 r1433  
    3333        new Visitor() {
    3434            public void visit(Node n) {
     35                if(n.id <= 0) return;
    3536                OpenBrowser.displayUrl("http://www.openstreetmap.org/browse/node/" + n.id + "/history");
    3637                sel.add(n);
     
    3839
    3940            public void visit(Way w) {
     41                if(w.id <= 0) return;
    4042                OpenBrowser.displayUrl("http://www.openstreetmap.org/browse/way/" + w.id + "/history");
    4143                sel.add(w);
     
    4345
    4446            public void visit(Relation e) {
     47                if(e.id <= 0) return;
    4548                OpenBrowser.displayUrl("http://www.openstreetmap.org/browse/relation/" + e.id + "/history");
    4649                sel.add(e);
     
    5558        if (sel.isEmpty()) {
    5659            JOptionPane.showMessageDialog(Main.parent,
    57             tr("Please select at least one node, way or relation."));
     60            tr("Please select at least one node, way or relation. Only already uploaded elements have a history."));
    5861                return;
    5962        }
Note: See TracChangeset for help on using the changeset viewer.