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

save

Location:
applications/editors/josm/plugins/smed2/src/seamap
Files:
3 edited

Legend:

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

    r29271 r29275  
    157157                                                        if (!gap) {
    158158                                                                Symbols.drawSymbol(g2, symbol, sScale, curr.getX(), curr.getY(),
    159                                                                                 new Delta(Handle.BC, AffineTransform.getRotateInstance(Math.atan2((succ.getY() - curr.getY()), (succ.getX() - curr.getX()) + Math.toRadians(90)))), null);
     159                                                                                new Delta(Handle.BC, AffineTransform.getRotateInstance(Math.atan2((succ.getY() - curr.getY()), (succ.getX() - curr.getX())) + Math.toRadians(90))), null);
    160160                                                        }
    161161                                                        if (space > 0) gap = !gap;
  • applications/editors/josm/plugins/smed2/src/seamap/Rules.java

    r29266 r29275  
    294294                case ACHARE:
    295295                        if (zoom >= 12) {
    296                                 Renderer.symbol(feature, Harbours.Anchorage, null, null);
     296                                if (feature.flag != Fflag.LINE)
     297                                        Renderer.symbol(feature, Harbours.Anchorage, null, null);
    297298                                Renderer.lineSymbols(feature, Areas.Restricted, 1.0, Areas.LineAnchor, 10);
    298299                                if ((zoom >= 15) && ((name) != null)) {
  • 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.