Skip to content

Commit fa63f6e

Browse files
author
stoecker
committed
fix #24299 - do zero check
git-svn-id: https://josm.openstreetmap.de/svn/trunk@19403 0c6e7542-c601-0410-84e7-c038aed88b3b
1 parent 3172be7 commit fa63f6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/org/openstreetmap/josm/gui/MapView.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,8 @@ private void drawMapContent(Graphics2D g) {
588588
}
589589

590590
nonChangedLayers.clear();
591-
nonChangedLayers.addAll(visibleLayers.subList(0, nonChangedLayersCount));
591+
if (nonChangedLayersCount > 0)
592+
nonChangedLayers.addAll(visibleLayers.subList(0, nonChangedLayersCount));
592593
lastViewID = getViewID();
593594
lastClipBounds = g.getClipBounds();
594595

0 commit comments

Comments
 (0)