We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23f5c83 commit f40502dCopy full SHA for f40502d
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java
@@ -1388,9 +1388,10 @@ public void setFont (Font font){
1388
error (SWT.ERROR_INVALID_ARGUMENT);
1389
}
1390
Font oldFont = this.font;
1391
- if (oldFont == font) return;
1392
Shell shell = parent.getShell();
1393
- this.font = (font == null ? font : Font.win32_new(font, shell.nativeZoom));
+ Font newFont = (font == null ? font : Font.win32_new(font, shell.nativeZoom));
+ if (oldFont == newFont) return;
1394
+ this.font = newFont;
1395
if (oldFont != null && oldFont.equals (font)) return;
1396
if (font != null) parent.customDraw = true;
1397
if ((parent.style & SWT.VIRTUAL) != 0) cached = true;
0 commit comments