Changeset 32961 in osm for applications/editors/josm


Ignore:
Timestamp:
2016-09-10T00:38:06+02:00 (8 years ago)
Author:
darya
Message:

fix #13521

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/PTAssistantValidatorTest.java

    r32895 r32961  
    109109        public void visit(Relation r) {
    110110
     111                if (!RouteUtils.isTwoDirectionRoute(r)) {
     112                        return;
     113                }
     114
     115                // Download incomplete members. If the download does not work, return
     116                // and do not do any testing.
     117                if (r.hasIncompleteMembers()) {
     118
     119                        boolean downloadSuccessful = this.downloadIncompleteMembers();
     120                        if (!downloadSuccessful) {
     121                                return;
     122                        }
     123                }
     124
     125                if (r.hasIncompleteMembers()) {
     126                        return;
     127                }
     128               
    111129                // Do some testing on stop area relations
    112130                if (Main.pref.getBoolean("pt_assistant.stop-area-tests", true) == true && StopUtils.isStopArea(r)) {
     
    126144                        // Attach thrown errors
    127145                        this.errors.addAll(stopChecker.getErrors());
    128                 }
    129 
    130                 if (!RouteUtils.isTwoDirectionRoute(r)) {
    131                         return;
    132                 }
    133 
    134                 // Download incomplete members. If the download does not work, return
    135                 // and do not do any testing.
    136                 if (r.hasIncompleteMembers()) {
    137 
    138                         boolean downloadSuccessful = this.downloadIncompleteMembers();
    139                         if (!downloadSuccessful) {
    140                                 return;
    141                         }
    142                 }
    143 
    144                 if (r.hasIncompleteMembers()) {
    145                         return;
    146146                }
    147147
Note: See TracChangeset for help on using the changeset viewer.