Thomas Singer
Thomas Singer
OK, let's do `getSize()`, `getWidth()` and `getHeight()` (and also introduce `getX()`, `getY()`, `getWidth()` and `getHeight()` for `Control`). Or should we rather avoid the `get` prefix as Java does with records?
At https://github.com/eclipse-platform/eclipse.platform.swt/blob/7c818d6b4727f754a0c64e99b15e74ea97c52031/bundles/org.eclipse.swt/Eclipse%20SWT/win32/org/eclipse/swt/graphics/Image.java#L1164-L1177 it looks like (0, 0) might sneak in somehow.
A user of SmartGit was able to create such a weird image and then it crashed. I don't have the time to check all image specifications whether this is allowed.
My commit used the correct, approved email address, but I've created the pull request with my GitHub account. Don't know why eclipsefdn/eca complains.