Ignore:
Timestamp:
2017-04-24T01:39:24+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #5144 - Cannot draw new ways when filter is active (patch by michael2402)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/FilterMatcher.java

    r11385 r11993  
    66import java.util.List;
    77
     8import org.openstreetmap.josm.Main;
    89import org.openstreetmap.josm.actions.search.SearchAction.SearchMode;
    910import org.openstreetmap.josm.actions.search.SearchCompiler;
     
    224225    private static FilterType test(List<FilterInfo> filters, OsmPrimitive primitive, boolean hidden) {
    225226
    226         if (primitive.isIncomplete())
     227        if (primitive.isIncomplete() || Main.map.mapMode.getPreservedPrimitives().contains(primitive))
    227228            return FilterType.NOT_FILTERED;
    228229
Note: See TracChangeset for help on using the changeset viewer.