Ignore:
Timestamp:
2009-09-13T22:23:19+02:00 (15 years ago)
Author:
stoecker
Message:

see #3475 - patch by Petr Dlouhý - code rework for display filtering

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java

    r2101 r2120  
    286286        public void build(DataSet ds) {
    287287            for (Relation r: ds.relations) {
    288                 if (r.isDeleted() || r.incomplete) {
     288                if (!r.isUsable()) {
    289289                    continue;
    290290                }
  • trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java

    r2025 r2120  
    102102            for (Node n : selectedNodes) {
    103103                for (Way w : getCurrentDataSet().ways) {
    104                     if (w.isDeleted() || w.incomplete) {
     104                    if (!w.isUsable()) {
    105105                        continue;
    106106                    }
     
    293293
    294294        for (Relation r : getCurrentDataSet().relations) {
    295             if (r.isDeleted() || r.incomplete) {
     295            if (!r.isUsable()) {
    296296                continue;
    297297            }
  • trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java

    r2070 r2120  
    6666            int count = 0;
    6767            for (Way w : getCurrentDataSet().ways) {
    68                 if (w.isDeleted() || w.incomplete || w.getNodesCount() < 1) {
     68                if (!w.isUsable() || w.getNodesCount() < 1) {
    6969                    continue;
    7070                }
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r2110 r2120  
    767767        Way way = null;
    768768        for (Way w : getCurrentDataSet().ways) {
    769             if (w.isDeleted() || w.incomplete || w.getNodesCount() < 1) {
     769            if (!w.isUsable() || w.getNodesCount() < 1) {
    770770                continue;
    771771            }
Note: See TracChangeset for help on using the changeset viewer.