Phil Beauvoir
Phil Beauvoir
Width and height are checked for zero or less on initialisation: https://github.com/eclipse-platform/eclipse.platform.swt/blob/7c818d6b4727f754a0c64e99b15e74ea97c52031/bundles/org.eclipse.swt/Eclipse%20SWT/cocoa/org/eclipse/swt/graphics/Image.java#L1446-L1449 https://github.com/eclipse-platform/eclipse.platform.swt/blob/7c818d6b4727f754a0c64e99b15e74ea97c52031/bundles/org.eclipse.swt/Eclipse%20SWT/win32/org/eclipse/swt/graphics/Image.java#L2078-L2082 https://github.com/eclipse-platform/eclipse.platform.swt/blob/7c818d6b4727f754a0c64e99b15e74ea97c52031/bundles/org.eclipse.swt/Eclipse%20SWT/gtk/org/eclipse/swt/graphics/Image.java#L1245-L1248 Is the size of 0,0 set in some other place in `Image`?
> This bug was introduced by commit https://github.com/eclipse-platform/eclipse.platform.swt/commit/4f5f2dca6656f039d2c3b2fb58d44aa8302bcf20 This PR reverses that commit. Does it cause a regression for that fix?
Try using a paint listener. Otherwise the image will be tiled (this is how images in Composites are rendered): ``` import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.ScrollBar;...
@tmssngr As a matter of interest this is also causing erratic behaviour in SmartGit. I don't know if you want to take a look at this as well?
@jukzi Wrong label. Should be macOS.
Actually, it's the same for the latest 4.33 I-builds. Seems to be the case since 4.31. Verifying the jars from 4.30 gives `jar is unsigned`.
Strange. The jars from `I20240713-0130` are unsigned and the ones from `I20240713-1800` are signed (although incorrectly).
> Probably a Wayland problem Yes.
> Try calling `export GDK_BACKEND=x11` before starting up the process. I found that help sometimes. I'm on Fedora 39 Wayland. If you set that then Eclipse is not running on...
Is the bug in the SWT Control Example code or in SWT itself?