Ignore:
Timestamp:
2012-03-10T05:53:33+01:00 (12 years ago)
Author:
joshdoe
Message:

utilsplugin2: fix inside match initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/UtilsPlugin2.java

    r27998 r28026  
    183183        public InsideMatch(Match match) {
    184184            super(match);
    185             //init();
    186185        }
    187186       
     
    190189         */
    191190        private void init() {
    192             if (inside==null) init(); // lazy initialization
    193191            Collection<OsmPrimitive> matchedAreas = new HashSet<OsmPrimitive>();
    194192
     
    212210        @Override
    213211        public boolean match(OsmPrimitive osm) {
     212            if (inside == null)
     213                init(); // lazy initialization
     214
    214215            return inside.contains(osm);
    215216        }
Note: See TracChangeset for help on using the changeset viewer.