Commit 3122344
[Win32] Avoid NPE when autoscaling is disabled on shell
When autoscaling is disabled for a shell, setLocation(), setBounds() and
setSize() can throw an NPE as they want to access the parent's zoom even
though there is no parent. This fixes the behavior by adding an
according null check.1 parent f0a9f93 commit 3122344
File tree
1 file changed
+3
-3
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3298 | 3298 | | |
3299 | 3299 | | |
3300 | 3300 | | |
3301 | | - | |
| 3301 | + | |
3302 | 3302 | | |
3303 | 3303 | | |
3304 | 3304 | | |
| |||
3556 | 3556 | | |
3557 | 3557 | | |
3558 | 3558 | | |
3559 | | - | |
| 3559 | + | |
3560 | 3560 | | |
3561 | 3561 | | |
3562 | 3562 | | |
| |||
3813 | 3813 | | |
3814 | 3814 | | |
3815 | 3815 | | |
3816 | | - | |
| 3816 | + | |
3817 | 3817 | | |
3818 | 3818 | | |
3819 | 3819 | | |
| |||
0 commit comments