[comp.windows.x] error in XtListChange of Athena list widget

jhs@rocksanne.UUCP (Hans Schlichter) (05/05/89)

I think there is an error in XtListChange of the Athena list-widget
(X11R3). The routine resets the current highlighting calling:
        lw->list.highlight = NO_HIGHLIGHT;
It should also reset (statement missing in code):
        lw->list.is_highlighted = NO_HIGHLIGHT;

Otherwise you will get a segment violation if you do the following:
        select an item
        shorten your list (the index of the previously selected item
        is larger than the new largest index)
        select a new item

/Hans

Arpa-Net: schlichter.wbst@xerox.com
UUCP: rochester!rocksanne!jhs

kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (05/16/89)

> I think there is an error in XtListChange of the Athena list-widget
> (X11R3). The routine resets the current highlighting calling:
>         lw->list.highlight = NO_HIGHLIGHT;
> It should also reset (statement missing in code):
>         lw->list.is_highlighted = NO_HIGHLIGHT;

Yep, thanks for pointing this out.  It will be fixed in R4.

						
                                                Chris D. Peterson
                                                MIT X Consortium

Net:     kit@expo.lcs.mit.edu
Phone:   (617) 253 - 9608
Address: MIT - Room NE43-213