Commit 93a484e
committed
[Win32] Avoid broken UI when DPI change handler fails #2432
In case a DPI change handler fails with an exception, the complete
rescaling process may fail. As an example, it may happen that an image
set to an Item has already been disposed when a DPI change event occurs,
but the DPI change handler still tries to set that image on the item
again, leading to an exception because of the image being disposed.
This change ensures that an exception happening when processing a DPI
change handler does not result in a complete rescaling failure and
instead reports the listener error to the Display.
Contributes to
#24321 parent 93c0ce9 commit 93a484e
File tree
1 file changed
+5
-1
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/internal
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
0 commit comments