[ROOT] Uninitialized data members in TGButton.cxx

From: Glen R. Salo (gsalo@mrcstl.com)
Date: Fri Mar 29 2002 - 19:41:54 MET


The following changes to TGButton.cxx seem to fix a problem I was having
with my GUIs.  My problems were fixed by initializing the fHKeycode to
zero in TGCheckButton and TGRadioButton following the same convention used
in TGTextButton.  My changes are noted below.

Thanks,

Glen

//_________________________________________________________________________
_____
void TGCheckButton::Init()
{
   // Common initialization.

   fPrevState =
   fState     = kButtonUp;
   fHKeycode = 0;  // <-- My modification


//_________________________________________________________________________
_____
void TGRadioButton::Init()
{
   // Common radio button initialization.

   fPrevState =
   fState     = kButtonUp;
   fHKeycode = 0; // <-- My modification



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:47 MET