Ignore:
Timestamp:
2013-02-22T13:53:24+01:00 (12 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed2/src/seamap/SeaMap.java

    r29272 r29275  
    201201
    202202                public boolean hasNext() {
    203                         return (edge != null) && ((it == null) || (edge.nodes.isEmpty()) || (forward && it.hasNext()) || (!forward && it.hasPrevious()));
     203                        return (edge != null);
    204204                }
    205205
     
    253253
    254254                public boolean hasNext() {
    255                         return side != null;
     255                        return (side != null) && ((sit.hasNext()) || (eit.hasNext()));
    256256                }
    257257
     
    502502                                llon = lon;
    503503                        }
    504                         double frac = harc / sarc;
    505                         return new Snode(llat + ((lat - llat) / frac), llon + ((lon - llon) / frac));
     504                        return new Snode(llat + ((lat - llat) * harc / sarc), llon + ((lon - llon) * harc / sarc));
    506505                case AREA:
    507506                        Bound bound = areas.get(feature.refs).get(0);
Note: See TracChangeset for help on using the changeset viewer.