Changeset 3329 in josm
- Timestamp:
- 2010-06-10T09:53:42+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintVisitor.java
r3322 r3329 373 373 ElemStyle wayStyle = getPrimitiveStyle(r, false); 374 374 375 boolean disabled = r.isDisabled(); 375 376 // If area style was not found for relation then use style of ways 376 377 if(styles != null && !(wayStyle instanceof AreaElemStyle)) { 377 378 for (Way w : multipolygon.getOuterWays()) { 378 379 wayStyle = styles.getArea(w); 380 disabled = disabled || w.isDisabled(); 379 381 if(wayStyle != null) { 380 382 break; 381 383 } 382 384 } 383 r.mappaintStyle = wayStyle;384 385 } 385 386 … … 390 391 drawn = true; 391 392 392 if(zoomok && ! multipolygon.getOuterWays().isEmpty()) {393 if(zoomok && !disabled && !multipolygon.getOuterWays().isEmpty()) { 393 394 AreaElemStyle areaStyle = (AreaElemStyle)wayStyle; 394 395 for (PolyData pd : multipolygon.getCombinedPolygons()) { … … 410 411 ElemStyle innerStyle = getPrimitiveStyle(wInner, true); 411 412 if(innerStyle == null) { 412 if (data.isSelected(wInner) )413 if (data.isSelected(wInner) || disabled) 413 414 continue; 414 415 if(zoomok && (wInner.mappaintDrawnCode != paintid || multipolygon.getOuterWays().isEmpty())) {
Note:
See TracChangeset
for help on using the changeset viewer.