Changeset 28501 in osm


Ignore:
Timestamp:
2012-07-22T22:49:10+02:00 (13 years ago)
Author:
donvip
Message:

[josm_undelete] fix #josm7884 - Can't undelete node

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/undelete/src/org/openstreetmap/josm/plugins/undelete/Undelete.java

    r28416 r28501  
    177177                  if (type.equals(OsmPrimitiveType.NODE))
    178178                  {
    179                     // We get all info from the latest version
    180                     hPrimitive2=hPrimitive1;
     179                    // We get version and user from the latest version, coordinates and tags from n-1 version
     180                    hPrimitive2=h.getByVersion(h.getNumVersions()-1);
    181181
    182182                    Node node = new Node(id, (int) hPrimitive1.getVersion());
    183183
    184                     HistoryNode hNode = (HistoryNode) hPrimitive1;
     184                    HistoryNode hNode = (HistoryNode) hPrimitive2;
    185185                    node.setCoor(hNode.getCoords());
    186186
Note: See TracChangeset for help on using the changeset viewer.