To Reproduce
Run Snippet367 with -Dswt.autoScale=150.
Stacktrace:
Exception in thread "main" java.lang.StackOverflowError
at org.eclipse.swt.internal.DPIUtil.getElementAtZoom(DPIUtil.java:289)
at org.eclipse.swt.internal.DPIUtil.validateAndGetImageDataAtZoom(DPIUtil.java:260)
at org.eclipse.swt.graphics.Image.initFromImageDataProvider(Image.java:797)
at org.eclipse.swt.graphics.Image.<init>(Image.java:675)
at org.eclipse.swt.internal.DPIUtil.autoScaleImageData(DPIUtil.java:156)
at org.eclipse.swt.internal.DPIUtil.scaleImageData(DPIUtil.java:139)
at org.eclipse.swt.graphics.Image.initFromImageDataProvider(Image.java:798)
at org.eclipse.swt.graphics.Image.<init>(Image.java:675)
at org.eclipse.swt.internal.DPIUtil.autoScaleImageData(DPIUtil.java:156)
at org.eclipse.swt.internal.DPIUtil.scaleImageData(DPIUtil.java:139)
at org.eclipse.swt.graphics.Image.initFromImageDataProvider(Image.java:798)
at org.eclipse.swt.graphics.Image.<init>(Image.java:675)
...
Environment:
- Select the platform(s) on which the behavior is seen:
Version since
This is a regression introduced with 216f1ad.
To Reproduce
Run Snippet367 with
-Dswt.autoScale=150.Stacktrace:
Environment:
Version since
This is a regression introduced with 216f1ad.