[XForms] XForms text rendering bug patch

Angus Leeming angus.leeming at btopenworld.com
Wed May 5 12:08:24 EDT 2004


On Wednesday 05 May 2004 4:50 pm, Jean-Marc Lasgouttes wrote:
> I was thinking about bugs like the following:
> http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg41904.html

Actually, wouldn't this bug be fixed by changing this:

	/* Check whether visible  */
	if (clip != 0 && (starty[i] + flx->fdesc) > y + h)
	    continue;

to this:

	/* Check whether visible  */
	if (clip != 0 && starty[i] > y + h)
	    continue;

Ie, draw this line of text even if it extends beyond the widget and 
then rely on XSetClipRectangles to do its stuff.

Angus



More information about the Xforms mailing list