Ignore:
Timestamp:
2016-03-03T17:21:33+01:00 (10 years ago)
Author:
malcolmh
Message:

[SeaChart] Fix floats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/src/render/Rules.java

    r32090 r32093  
    628628        }
    629629       
     630        @SuppressWarnings("unchecked")
    630631        private static void floats() {
    631632                if (Renderer.zoom >= 12) {
     
    643644                                break;
    644645                        }
    645                         if (feature.objs.get(Obj.TOPMAR) != null)
    646                                 Renderer.symbol(Topmarks.Shapes.get(feature.objs.get(Obj.TOPMAR).get(0).get(Att.TOPSHP).val), getScheme(Obj.TOPMAR), Topmarks.FloatDelta);
     646                        if (feature.objs.containsKey(Obj.TOPMAR)) {
     647                                AttMap topmap = feature.objs.get(Obj.TOPMAR).get(0);
     648                                if (topmap.containsKey(Att.TOPSHP)) {
     649                                        Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>)(topmap.get(Att.TOPSHP).val)).get(0)), getScheme(Obj.TOPMAR), Topmarks.FloatDelta);
     650                                }
     651                        } else if (feature.objs.containsKey(Obj.DAYMAR)) {
     652                                AttMap topmap = feature.objs.get(Obj.DAYMAR).get(0);
     653                                if (topmap.containsKey(Att.TOPSHP)) {
     654                                        Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>)(topmap.get(Att.TOPSHP).val)).get(0)), getScheme(Obj.DAYMAR), Topmarks.FloatDelta);
     655                                }
     656                        }
    647657                        addName(15, new Font("Arial", Font.BOLD, 40), new Delta(Handle.BL, AffineTransform.getTranslateInstance(20, -50)));
    648658                        Signals.addSignals();
Note: See TracChangeset for help on using the changeset viewer.