Ignore:
Timestamp:
2016-10-16T20:21:22+02:00 (8 years ago)
Author:
simon04
Message:

fix #13807 see #13799 - Regression: zoom to problem doesn't work anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/TestError.java

    r11130 r11134  
    141141            CheckParameterUtil.ensureThat(this.primitives == null, "primitives already set");
    142142            this.primitives = primitives;
     143            if (this.highlighted == null) {
     144                this.highlighted = primitives;
     145            }
    143146            return this;
    144147        }
     
    163166         */
    164167        public Builder highlight(Collection<? extends OsmPrimitive> highlighted) {
    165             CheckParameterUtil.ensureThat(this.highlighted == null, "highlighted already set");
    166168            this.highlighted = highlighted;
    167169            return this;
     
    176178         */
    177179        public Builder highlightWaySegments(Collection<WaySegment> highlighted) {
    178             CheckParameterUtil.ensureThat(this.highlighted == null, "highlighted already set");
    179180            this.highlighted = highlighted;
    180181            return this;
     
    189190         */
    190191        public Builder highlightNodePairs(Collection<List<Node>> highlighted) {
    191             CheckParameterUtil.ensureThat(this.highlighted == null, "highlighted already set");
    192192            this.highlighted = highlighted;
    193193            return this;
Note: See TracChangeset for help on using the changeset viewer.