Hi Brett, thanks, fix now in CVS. Cheers, Fons. On Friday 28 December 2001 17:16, Brett Viren wrote: > Hi, > > The small change below protects against SegV when > TGTableLayout::GetDefaultSize() is called before Layout(). Also, this > should return a more accurate value. > > -Brett. > > bviren@minos:src> cvs diff TGTableLayout.cxx > Index: TGTableLayout.cxx > =================================================================== > RCS file: /user/cvs/root/gui/src/TGTableLayout.cxx,v > retrieving revision 1.3 > diff -r1.3 TGTableLayout.cxx > 51d50 > < > 625,626c624,627 > < for (col = 0; col < fNcols; ++col) size.fWidth += fCol[col].fDefSize; > < for (row = 0; row < fNrows; ++row) size.fHeight += fRow[row].fDefSize; > --- > > > if (fCol) > > for (col = 0; col < fNcols; ++col) size.fWidth += > > fCol[col].fRealSize; if (fRow) > > for (row = 0; row < fNrows; ++row) size.fHeight += > > fRow[row].fRealSize; -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:14 MET