mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CPP-17180 Create featured lazy icons in breadcrumbs
- fix NPE GitOrigin-RevId: 1cc8f17e7ecf66601c8a228bcc5271cee85bee6c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1297608dd8
commit
70e35d9725
@@ -379,8 +379,14 @@ public class Breadcrumbs extends JBPanelWithEmptyText {
|
||||
|
||||
private void update() {
|
||||
icon = crumb.getIcon();
|
||||
crumbIconWidth = icon.getIconWidth();
|
||||
crumbIconHeight = icon.getIconHeight();
|
||||
if (icon != null) {
|
||||
crumbIconWidth = icon.getIconWidth();
|
||||
crumbIconHeight = icon.getIconHeight();
|
||||
}
|
||||
else {
|
||||
crumbIconWidth = 0;
|
||||
crumbIconHeight = 0;
|
||||
}
|
||||
text = crumb.getText();
|
||||
font = getFont(crumb);
|
||||
foreground = getForeground(crumb);
|
||||
|
||||
Reference in New Issue
Block a user