Community
Participate
Working Groups
Created attachment 93361 [details] Shows the bug, with 2 commented lines to test other scenarios Build ID: 3.4M5 Steps To Reproduce: 1. Create a control. 2. Hide one of that control's ancestors (like the shell) and print(gc) the control. 3. The resulting image does not contain anything (true is returned though) This was tested with the Browser, though it is likely the bug affects all controls. More information: This may be linked to bug 223590 This is quite critical for us. We have some components we need to print, and we have to make the hierarchy visible and restore the hierarchy visibility state. This flickers and does not provide a good user experience.
Tested with 3.4M6. This bug affects windows and Linux. There is an exception though: on Windows a Button can be printed in its entirety even though some of its ancestors are hidden. Browser fails.
It is unlikely I will get to this for 3.4.
I made further tests with SWT-N20090320-2000 to see how it behaves with the recent GC improvements. 1. On Windows If fixPrintWindow is artificially set to true in Control.printWidget(int, int, GC), then everything works fine. I think fixPrintWindow should be set to true if one of the ancestors is not visible, which is probably an easy fix. 2. On Linux The three cases from the code sample do not work (even the one that works on Windows).
Fixed the problem on Windows when the parent is not visible. I still need to investigate Linux.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
This bug was marked as stalebug a while ago. Marking as wontfix. If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag.