Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345972

Summary: Transparent pixels lost when copying image that was directly read from file
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: SWTAssignee: Xi Yan <xixiyan>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, loskutov, luigiwalser, remy.suen, xixiyan
Version: 3.7Keywords: triaged
Target Milestone: 4.12 M1   
Hardware: PC   
OS: Linux-GTK   
See Also: https://git.eclipse.org/r/139773
https://bugs.eclipse.org/bugs/show_bug.cgi?id=103691
https://bugs.eclipse.org/bugs/show_bug.cgi?id=546035
https://bugs.eclipse.org/bugs/show_bug.cgi?id=546089
Whiteboard:

Description Markus Keller CLA 2011-05-16 11:38:29 EDT
I20110512-2000, already happens in 3.6

This is the GTK version of bug 310387.

On Cocoa and on Windows 7, only certain images cause a problem with transparent pixels. But as the testbed in bug 310387 comment 9 and the screenshot in the next comment show, GTK has a problem with all images that have been loaded using the Image(Device device, String filename) constructor and then copied using SnippetBug310387#createCenteredTableItem(String).
Comment 1 Markus Keller CLA 2011-05-17 06:03:13 EDT
With bug 345180, we released a workaround to HEAD of AnnotationsConfigurationBlock, so the original problem is not prominent any more on the preferences page (just the 'Override Indicators' annotation image has a small white rectangle).
Comment 2 Xi Yan CLA 2018-09-07 10:09:00 EDT
Still reproducible on GTK3.22, 4.9 RC2, and Fedora 28.
Comment 3 Eclipse Genie CLA 2019-03-29 11:54:04 EDT
New Gerrit change created: https://git.eclipse.org/r/139773
Comment 4 Xi Yan CLA 2019-03-29 15:26:16 EDT
*** Bug 103691 has been marked as a duplicate of this bug. ***
Comment 6 Xi Yan CLA 2019-04-04 09:58:02 EDT
The new fix for this bug is addressed in the following patch. 

Gerrit change https://git.eclipse.org/r/139987 was merged to [master].
Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=2dfa77fb07779dbb9c647dc96a4c6628321df4a3
Comment 7 Xi Yan CLA 2019-04-09 10:56:32 EDT
Verified in I20190403-1800.