diff --git a/src/org/openstreetmap/josm/actions/relation/RecentRelationsAction.java b/src/org/openstreetmap/josm/actions/relation/RecentRelationsAction.java
index 80ef476..3aa3329 100644
|
a
|
b
|
package org.openstreetmap.josm.actions.relation;
|
| 4 | 4 | import static org.openstreetmap.josm.tools.I18n.tr; |
| 5 | 5 | |
| 6 | 6 | import java.awt.Component; |
| | 7 | import java.awt.Dimension; |
| 7 | 8 | import java.awt.Rectangle; |
| 8 | 9 | import java.awt.event.ActionEvent; |
| 9 | 10 | import java.awt.event.ActionListener; |
| … |
… |
public class RecentRelationsAction implements ActionListener, CommandQueueListen
|
| 153 | 154 | menuItem.setAccelerator(keystroke); |
| 154 | 155 | first = false; |
| 155 | 156 | } |
| 156 | | menuItem.setIcon(ImageProvider.getPadded(relation, new Rectangle(16, 16))); |
| | 157 | Dimension dimension = ImageProvider.getImageSizes(ImageProvider.ImageSizes.MENU); |
| | 158 | menuItem.setIcon(ImageProvider.getPadded(relation, new Rectangle(dimension.width, dimension.height))); |
| 157 | 159 | add(menuItem); |
| 158 | 160 | } |
| 159 | 161 | } |
diff --git a/src/org/openstreetmap/josm/tools/ImageProvider.java b/src/org/openstreetmap/josm/tools/ImageProvider.java
index 828ac94..bc37b55 100644
|
a
|
b
|
public class ImageProvider {
|
| 1768 | 1768 | } |
| 1769 | 1769 | |
| 1770 | 1770 | /** |
| 1771 | | * Determines if the given {@code BufferedImage} has a transparent color determiend by a previous call to {@link #read}. |
| | 1771 | * Determines if the given {@code BufferedImage} has a transparent color determined by a previous call to {@link #read}. |
| 1772 | 1772 | * @param bi The {@code BufferedImage} to test |
| 1773 | 1773 | * @return {@code true} if {@code bi} has a transparent color determined by a previous call to {@code read}. |
| 1774 | 1774 | * @see #read |