Changeset 7290 in josm


Ignore:
Timestamp:
2014-07-05T16:35:30+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10227 - exclude boundary relations from "No style for multipolygon" test

File:
1 edited

Legend:

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

    r7005 r7290  
    7272        styles = MapPaintStyles.getStyles();
    7373    }
    74    
     74
    7575    @Override
    7676    public void startTest(ProgressMonitor progressMonitor) {
     
    8484        }
    8585    }
    86    
     86
    8787    @Override
    8888    public void endTest() {
     
    217217                        }
    218218                    }
    219                     if(area == null)
    220                         addError(r, new TestError(this, Severity.OTHER, tr("No style for multipolygon"), NO_STYLE, r));
    221                     else
    222                         addError(r, new TestError(this, Severity.OTHER, tr("No style in multipolygon relation"),
    223                             NO_STYLE_POLYGON, r));
     219                    if (!"boundary".equals(r.get("type"))) {
     220                        if (area == null) {
     221                            addError(r, new TestError(this, Severity.OTHER, tr("No style for multipolygon"), NO_STYLE, r));
     222                        } else {
     223                            addError(r, new TestError(this, Severity.OTHER, tr("No style in multipolygon relation"),
     224                                NO_STYLE_POLYGON, r));
     225                        }
     226                    }
    224227                }
    225228
Note: See TracChangeset for help on using the changeset viewer.