- Timestamp:
- 2009-04-27T01:04:01+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r1523 r1558 19 19 import java.awt.event.ActionEvent; 20 20 import java.awt.geom.Area; 21 import java.awt.geom.Rectangle2D; 21 22 import java.awt.image.BufferedImage; 22 23 import java.io.File; … … 234 235 // System.out.println(""); 235 236 236 // copy the merged layer's data source info 237 for (DataSource src : ((OsmDataLayer)from).data.dataSources) 238 data.dataSources.add(src); 237 Area a = data.getDataSourceArea(); 238 239 // copy the merged layer's data source info; 240 // only add source rectangles if they are not contained in the 241 // layer already. 242 for (DataSource src : ((OsmDataLayer)from).data.dataSources) { 243 if (a == null || !a.contains(src.bounds.asRect())) 244 data.dataSources.add(src); 245 } 239 246 240 247 // copy the merged layer's API version, downgrade if required
Note:
See TracChangeset
for help on using the changeset viewer.