From 9a9ebd5c313d84ad442e19a86bfd7cd1de1eab8b Mon Sep 17 00:00:00 2001
From: Robert Scott <code@humanleg.org.uk>
Date: Wed, 27 Sep 2017 21:10:40 +0100
Subject: [PATCH 1/3] SlippyMapBBoxChooser: should probably paint through
paintComponent() instead of paint()
this way any child components (e.g. the source button) will get painted
*on top of* any additional painting we do here
---
src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java b/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
index 62cc20e..6451dd8 100644
a
|
b
|
public class SlippyMapBBoxChooser extends JMapViewer implements BBoxChooser {
|
214 | 214 | * Draw the map. |
215 | 215 | */ |
216 | 216 | @Override |
217 | | public void paint(Graphics g) { |
218 | | super.paint(g); |
| 217 | public void paintComponent(Graphics g) { |
| 218 | super.paintComponent(g); |
219 | 219 | |
220 | 220 | // draw selection rectangle |
221 | 221 | if (iSelectionRectStart != null && iSelectionRectEnd != null) { |