Commit 7b2f0dc
committed
[Win32] Properly handle setting null font to GC #2350
When calling GC#setFont(), a copy of the given font is created. However,
the font may be null, leading to an exception. In addition, a font
should be retrieved from the font provider instead of creating a new
font that is manually disposed later on.
This change ensures that null fonts are properly handled and that the
stored font is retrieved from the provider.
Fixes #23501 parent a68fd8d commit 7b2f0dc
File tree
1 file changed
+1
-2
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5015 | 5015 | | |
5016 | 5016 | | |
5017 | 5017 | | |
5018 | | - | |
5019 | | - | |
| 5018 | + | |
5020 | 5019 | | |
5021 | 5020 | | |
5022 | 5021 | | |
| |||
0 commit comments