Commit db9f69f
committed
Ensure font is fetched from registry even when zoom levels match
The font returned by Font.win32_new is stored in the setFont() method of
widgets. Previously, if targetZoom == font.zoom, the passed font was
returned directly. However, the passed font could have been disposed by
user code. This change ensures that the font is always fetched from the
font registry, even when the zoom levels match, avoiding potential use
of disposed fonts.1 parent 34a4d76 commit db9f69f
File tree
1 file changed
+0
-3
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics
1 file changed
+0
-3
lines changedLines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | 405 | | |
409 | 406 | | |
410 | 407 | | |
0 commit comments