Changeset 11633 in josm for trunk/src/org
- Timestamp:
- 2017-02-26T13:33:10+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r11627 r11633 17 17 import java.awt.event.ActionEvent; 18 18 import java.awt.geom.Area; 19 import java.awt.geom.Path2D; 19 20 import java.awt.geom.Rectangle2D; 20 21 import java.awt.image.BufferedImage; … … 412 413 // over-grow it just to be sure 413 414 b.grow(100, 100); 414 Area a = new Area(b);415 416 // now successively subtractdownloaded areas415 Path2D p = new Path2D.Double(); 416 417 // combine successively downloaded areas 417 418 for (Bounds bounds : data.getDataSourceBounds()) { 418 419 if (bounds.isCollapsed()) { 419 420 continue; 420 421 } 421 a.subtract(mv.getState().getArea(bounds)); 422 } 422 p.append(mv.getState().getArea(bounds), false); 423 } 424 // subtract combined areas 425 Area a = new Area(b); 426 a.subtract(new Area(p)); 423 427 424 428 // paint remainder
Note:
See TracChangeset
for help on using the changeset viewer.