Index: trunk/src/org/openstreetmap/josm/gui/MapView.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/MapView.java	(revision 3124)
+++ trunk/src/org/openstreetmap/josm/gui/MapView.java	(revision 3125)
@@ -490,4 +490,5 @@
             }
             Graphics2D g2 = offscreenBuffer.createGraphics();
+            g2.setClip(g.getClip());
             g2.setColor(PaintColors.BACKGROUND.get());
             g2.fillRect(0, 0, getWidth(), getHeight());
@@ -500,4 +501,5 @@
             if (nonChangedLayers.size() != nonChangedLayersCount) {
                 Graphics2D g2 = offscreenBuffer.createGraphics();
+                g2.setClip(g.getClip());
                 for (int i=nonChangedLayers.size(); i<nonChangedLayersCount; i++) {
                     visibleLayers.get(i).paint(g2, this, box);
