mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
An exception is fixed
This commit is contained in:
@@ -294,7 +294,7 @@ public class SheetController {
|
||||
}
|
||||
});
|
||||
|
||||
FontMetrics fontMetrics = mySheetMessage.getFontMetrics(regularFont);
|
||||
FontMetrics fontMetrics = sheetPanel.getFontMetrics(regularFont);
|
||||
|
||||
int widestWordWidth = 250;
|
||||
|
||||
|
||||
@@ -259,11 +259,6 @@ public class SheetMessage {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
FontMetrics getFontMetrics(final Font f) {
|
||||
final Component c = (myParent == null) ? WindowManagerEx.getInstanceEx().getMostRecentFocusedWindow() : myParent;
|
||||
return c.getGraphics().getFontMetrics(f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user