Changeset 4732 in josm for trunk/src


Ignore:
Timestamp:
2011-12-28T16:35:23+01:00 (8 years ago)
Author:
Don-vip
Message:

fix #7195 - Area fill of multipolygon not moved back when multipolygon move is canceled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/MultipolygonCache.java

    r4649 r4732  
    238238                }
    239239                for (Map<Relation, Multipolygon> map : maps) {
    240                     Multipolygon mp = map.get(p);
    241                     // DataChangedEvent is sent after downloading incomplete members,
     240                    // DataChangedEvent is sent after downloading incomplete members (see #7131),
    242241                    // without having received RelationMembersChangedEvent or PrimitivesAddedEvent
    243                     if (mp != null && mp.isIncomplete()) {
    244                         // This ensures previously incomplete multipolygons will be correctly redrawn
    245                         map.remove(p);
    246                     }
     242                    // OR when undoing a move of a large number of nodes (see #7195),
     243                    // without having received NodeMovedEvent
     244                    // This ensures concerned multipolygons will be correctly redrawn
     245                    map.remove(p);
    247246                }
    248247            }
Note: See TracChangeset for help on using the changeset viewer.