Project: Eclipse_Platform_UI
Bug 170827 ControlDecoration uses the wrong GC method to render text
Reported: 2007-01-17 15:26:16 | Status: resolved fixed

The constructor of the Hover in ControlDecoration: hoverShell.addPaintListener(new PaintListener() { public void paintControl(PaintEvent pe) { pe.gc.drawString(text, hm, hm); if (!CARBON) { pe.gc.drawPolygon(getPolygon(true)); } } }); The size of the hover is correctly performed when there are carriage returns in the text. However, the text is painted as String. This causes only the first line to be painted and the rest of the hover is empty. The fix is to use GC.drawText' instead.

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ControlDecoration.java