Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
8ef6fa37
Commit
8ef6fa37
authored
7 years ago
by
Sergey Ignatov
Browse files
Options
Download
Email Patches
Plain Diff
rename
parent
7606e2bd
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java
+5
-3
...src/com/intellij/ide/util/gotoByName/GotoActionModel.java
with
5 additions
and
3 deletions
+5
-3
platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java
+
5
-
3
View file @
8ef6fa37
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help