Commit 8ef6fa37 authored by Sergey Ignatov's avatar Sergey Ignatov
Browse files

rename

parent 7606e2bd
Branches unavailable Tags unavailable
No related merge requests found
Showing with 5 additions and 3 deletions
+5 -3
......@@ -255,11 +255,13 @@ public class GotoActionModel implements ChooseByNameModel, Comparator<Object>, D
if (icon == null) return new JLabel(layeredIcon);
int width = icon.getIconWidth();
int emptyWidth = EMPTY_ICON.getIconWidth();
int height = icon.getIconHeight();
int emptyIconWidth = EMPTY_ICON.getIconWidth();
int emptyIconHeight = EMPTY_ICON.getIconHeight();
if (width <= emptyWidth && height <= emptyIconHeight) {
layeredIcon.setIcon(disabled ? IconLoader.getDisabledIcon(icon) : icon, 1, (emptyWidth - width) / 2, (emptyIconHeight - height) / 2);
if (width <= emptyIconWidth && height <= emptyIconHeight) {
layeredIcon.setIcon(disabled ? IconLoader.getDisabledIcon(icon) : icon, 1,
(emptyIconWidth - width) / 2,
(emptyIconHeight - height) / 2);
}
return new JLabel(layeredIcon);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment