| Summary: | Fix GfPackageTests.testGraphitiUiInternal | ||
|---|---|---|---|
| Product: | [Modeling] Graphiti | Reporter: | Michael Wenz <michael.wenz> |
| Component: | Core | Assignee: | Tim Kaiser <tim.kaiser> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | tim.kaiser |
| Version: | 0.7.0 | ||
| Target Milestone: | 0.7.0 | ||
| Hardware: | All | ||
| OS: | Linux-GTK | ||
| Whiteboard: | |||
|
Description
Michael Wenz
There is a general issue in Linux GTK, that forces SWT to use color depth 24 for creating an Image object from an image descriptor (no matter what is set in the descriptor). See https://bugs.eclipse.org/bugs/show_bug.cgi?id=70949 The test could easily be fixed by using SWT.IMAGE_BMP for the internal representation of the GIF, but the same functionality is also used when saving a diagram as an image. In case of saving as GIF the same issue occurs and setting the format to anything else except GIF will produce a corrupt file. Two workarounds are provided in the above bug report: 1) use ImageDescriptor instead of Image 2) Re-sample the color depth. -Michael In case of GIF, we use the image data directly -- without creating an image. This preserves the correct color depth. fix checked into cvs Needs to appear in release review Is resolved, will go to verified Part of 0.7.0 release |