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

Bug 547915

Summary: IllegalArgumentException when trying to print
Product: z_Archived Reporter: Dirk Fauth <dirk.fauth>
Component: NebulaAssignee: Dirk Fauth <dirk.fauth>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: nebula-inbox, shashwat.work
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
See Also: https://github.com/eclipse/nebula/pull/91
https://bugs.eclipse.org/bugs/show_bug.cgi?id=543407
Whiteboard:

Description Dirk Fauth CLA 2019-06-04 10:39:42 EDT
As reported in Bug 543407 there is an IllegalArgumentException when trying to print a NatTable that uses the RichTextViewer in a cell painter. The reason is that the RichTextPainter creates a new GC to ensure to print on a fresh GC that has no configuration left-overs.

In case of an IllegalArgumentException the given GC should be used instead of creating a new instance.