Ignore:
Timestamp:
2013-01-20T11:51:05+01:00 (13 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

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

    r29205 r29206  
    100100                ArrayList<Long> way;
    101101                if (map.mpolys.containsKey(feature.refs)) {
    102                         way = map.ways.get(map.mpolys.get(feature.refs));
     102                        way = map.ways.get(map.mpolys.get(feature.refs).get(0));
    103103                } else {
    104104                        way = map.ways.get(feature.refs);
     
    107107                case NODE:
    108108                        return map.nodes.get(feature.refs);
    109                 case WAY:
     109                case LINE:
    110110                        coord = map.nodes.get(way.get(1));
    111111                        break;
     
    152152                                }
    153153                                if (item.type == Prim.SYMB) {
    154                                         ssymb = (Symbol) item.params;
     154                                        ssymb = ((SubSymbol)item.params).instr;
    155155                                        break;
    156156                                }
     
    293293        public static void labelText (Feature feature, String str, Font font, Color colour, Delta delta) {
    294294                Symbol label = new Symbol();
    295                 label.add(new Instr(Prim.TEXT, new Caption(str, font, colour
    296                                 , delta)));
     295                label.add(new Instr(Prim.TEXT, new Caption(str, font, colour, (delta == null) ? new Delta(Handle.CC, null) : delta)));
    297296                Point2D point = helper.getPoint(findCentroid(feature));
    298                 Symbols.drawSymbol(g2, label, tScale, point.getX(), point.getY(), delta, null);
     297                Symbols.drawSymbol(g2, label, tScale, point.getX(), point.getY(), null, null);
    299298        }
    300299       
Note: See TracChangeset for help on using the changeset viewer.