Skip to content

Commit afcaae9

Browse files
Leftover from comments
1 parent f780717 commit afcaae9

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ void init(int style) {
373373
initAccessible();
374374
}
375375

376-
void onZoomChange(Event event) {
376+
private void onZoomChange(Event event) {
377377
update();
378378
}
379379

bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderRenderer.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,12 +1696,10 @@ Color getFillColor() {
16961696

16971697
private Font getChevronFont(Display display) {
16981698
if (chevronFont == null) {
1699-
if (chevronFont == null) {
1700-
FontData fd = parent.getFont().getFontData()[0];
1701-
int fontHeight = (int) (parent.getFont().getFontData()[0].height * 0.7);
1702-
fd.setHeight(fontHeight);
1703-
chevronFont = new Font(display, fd);
1704-
}
1699+
FontData fd = parent.getFont().getFontData()[0];
1700+
int fontHeight = (int) (fd.height * 0.7);
1701+
fd.setHeight(fontHeight);
1702+
chevronFont = new Font(display, fd);
17051703
}
17061704
return chevronFont;
17071705
}

0 commit comments

Comments
 (0)