[ROOT] Bug in TGTextEdit -> Find Again...

From: Andreas Zoglauer (zog@mpe.mpg.de)
Date: Thu Jun 21 2001 - 10:09:02 MEST


Hi All,


If one calls "Find Again" in a TGTextEdit without previously calling
"Find", one gets a segmentation violation.

The reason is that in the source code the member fSearch has not been
initialized, so simply test for fSearch == 0 in ProcessMessage() -
case kM_SEARCH_FINDAGAIN and in this case execute the
code for the command "Find" (kM_SEARCH_FIND) instead of "Find Again".


Andreas

OS: SuSE 7.1 / KDE 2  ROOT: 3.01.05



----------------------------------------------------------------------
Andreas Zoglauer

MPI fuer extraterrestrische Physik         Phone:    +49/89-30000-3848
Postfach 1312                              Fax:      +49/89-30000-3569
85741 Garching, Germany                    Email:    zog@mpe.mpg.de
----------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET