Changeset 8131 in josm for trunk/src/org
- Timestamp:
- 2015-03-09T23:37:29+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r8126 r8131 496 496 if (s.mode == SearchMode.replace) { 497 497 sel.clear(); 498 } else if (s.mode == SearchMode.in_selection) { 499 foundMatches = sel.size(); 498 500 } 499 501 … … 504 506 all = Main.main.getCurrentDataSet().allNonDeletedCompletePrimitives(); 505 507 } 508 506 509 for (OsmPrimitive osm : all) { 507 510 if (s.mode == SearchMode.replace) { … … 516 519 sel.remove(osm); 517 520 ++foundMatches; 518 } else if (s.mode == SearchMode.in_selection && 521 } else if (s.mode == SearchMode.in_selection && p.evaluate(osm) && !matcher.match(osm)) { 519 522 sel.remove(osm); 520 ++foundMatches;523 --foundMatches; 521 524 } 522 525 }
Note:
See TracChangeset
for help on using the changeset viewer.