- Timestamp:
- 2009-01-11T18:43:37+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java
r1236 r1250 360 360 protected boolean isPolygonVisible(Polygon polygon) { 361 361 Rectangle bounds = polygon.getBounds(); 362 if (bounds.width == 0 && bounds.height == 0) return false; 362 363 if (bounds.x > nc.getWidth()) return false; 363 else if (bounds.y > nc.getHeight()) return false; 364 else if (bounds.x + bounds.width < 0) return false; 365 else if (bounds.y + bounds.height < 0) return false; 366 364 if (bounds.y > nc.getHeight()) return false; 365 if (bounds.x + bounds.width < 0) return false; 366 if (bounds.y + bounds.height < 0) return false; 367 367 return true; 368 368 }
Note:
See TracChangeset
for help on using the changeset viewer.