[XForms] XForms text rendering bug patch

Dmitry Karasik dmitry at karasik.eu.org
Mon Mar 1 05:33:03 EST 2004


Under certain condition, input lines do not display any text.
The bug, which is basically comparison of a signed integer as a boolean, 
is fixed by the following patch:

--- xtext.c     Mon Mar  1 11:26:24 2004
+++ /usr/ports/x11-toolkits/xforms/work/xforms-1.0/lib/xtext.c  Mon Mar 
  1 11:26
:29 2004
@@ -210,7 +210,7 @@
      for (i = topline; i < endline; i++)
      {
         /* Check whether visible  */
+       if (clip > 0 && (starty[i] + flx->fdesc) > y + h)
-       if (clip && (starty[i] + flx->fdesc) > y + h)
             continue;

         ulpos = -1;





More information about the Xforms mailing list