doyle@riacs.edu (Dee Doyle) (02/24/89)
XtTextInvalidate has the following line in it: ctx->text.lastPos = (*ctx->text.source->GetLasPos)(ctx->text.source); In the procedures which create the source for ascii text widgets and those which create the source for the text widgets the field source->GetLastPos is never initialized. As a result, calling XtTextInvalidate causes a segmentation fault. Am I suppose to provide a function for GetLastPos? If so, Is there a macro to call which will initialize the field with my function? Perhaps I am missing something? Thanks for your help. Dee doyle@riacs.edu
swick@ATHENA.MIT.EDU (Ralph R Swick) (02/25/89)
> Am I suppose to provide a function for GetLastPos?
The GetLastPos method for text sources was left over from an older
design. XtTextInvalidate() should not have been calling it. This
has been corrected here but hasn't yet been published as a fix.
Feel free to make the obvious substitution with the GETLASTPOS macro
(and preserve your old source for when the patch is officially published).