Skip to content

Commit 240e1b5

Browse files
committed
Force font metrics recalculation when changing tabs
Fix #7321
1 parent a55a6d2 commit 240e1b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/processing/app/Editor.java

+1
Original file line numberDiff line numberDiff line change
@@ -1452,6 +1452,7 @@ public void selectTab(final int index) {
14521452
codePanel.removeAll();
14531453
codePanel.add(tabs.get(index), BorderLayout.CENTER);
14541454
tabs.get(index).requestFocusInWindow(); // get the caret blinking
1455+
tabs.get(index).applyPreferences();
14551456
// For some reason, these are needed. Revalidate says it should be
14561457
// automatically called when components are added or removed, but without
14571458
// it, the component switched to is not displayed. repaint() is needed to

0 commit comments

Comments
 (0)