Skip to content

[Tree/Table Image] The item image is wrongly scaled with Eclipse 4.36 #3050

@wolfgang-ch

Description

@wolfgang-ch

When switching from Eclipse 4.35 to 4.36 then the tree and table images are wrongly scaled when creating an image with org.eclipse.swt.graphics.Image.Image(Device, ImageDataProvider) which was suggested in eclipse-platform/eclipse.platform.swt#1411 (comment)

In this example, the app is running with -Dswt.autoScale=200 which works with Eclipse 4.35 but with Eclipse 4.36 the image bounds is doubled

Image

After debugging I found the code where the scaling returns the wrong values

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions