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;
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:14 MET