Wed Feb 16 09:06:15 PST 2000

(KainX)

Apparently somebody didn't think about what would happen if the textbox were
empty. :-)


SVN revision: 2080
This commit is contained in:
Michael Jennings 2000-02-16 17:07:48 +00:00
parent a7072c6ce3
commit 7f125c8515
2 changed files with 12 additions and 1 deletions

View File

@ -1963,3 +1963,11 @@ Wed Feb 16 11:18:58 EST 2000
(Christian)
Added a timer to E-Mountbox that keeps the display up to date.
-------------------------------------------------------------------------------
Wed Feb 16 09:06:15 PST 2000
(KainX)
Apparently somebody didn't think about what would happen if the textbox were
empty. :-)

View File

@ -3978,7 +3978,10 @@ Epplet_event(Epplet_gadget gadget, XEvent * ev)
float delta;
g = (GadTextBox *) gadget;
if (g->contents == NULL)
break;
XTranslateCoordinates(disp, g->win, root, 0, 0, &tmp_x, &tmp_y, &dummy);
width = rx - tmp_x;
length = strlen(g->contents);