Changeset 3125 in josm for trunk


Ignore:
Timestamp:
2010-03-12T19:56:19+01:00 (10 years ago)
Author:
jttt
Message:

Fix #4723 Error on load, on zoom

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapView.java

    r3118 r3125  
    490490            }
    491491            Graphics2D g2 = offscreenBuffer.createGraphics();
     492            g2.setClip(g.getClip());
    492493            g2.setColor(PaintColors.BACKGROUND.get());
    493494            g2.fillRect(0, 0, getWidth(), getHeight());
     
    500501            if (nonChangedLayers.size() != nonChangedLayersCount) {
    501502                Graphics2D g2 = offscreenBuffer.createGraphics();
     503                g2.setClip(g.getClip());
    502504                for (int i=nonChangedLayers.size(); i<nonChangedLayersCount; i++) {
    503505                    visibleLayers.get(i).paint(g2, this, box);
Note: See TracChangeset for help on using the changeset viewer.