Checked in workaround for tree-view/apprunner problem of assert in GetColumnWidth()

This commit is contained in:
troy%netscape.com 1999-10-05 02:41:36 +00:00
Родитель 7580ecd1e8
Коммит 05b9f1f4ff
2 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -278,8 +278,16 @@ nsTableFrame::nsTableFrame()
mBits.mCellMapValid = PR_TRUE; mBits.mCellMapValid = PR_TRUE;
mBits.mIsInvariantWidth = PR_FALSE; mBits.mIsInvariantWidth = PR_FALSE;
mBits.mHasScrollableRowGroup = PR_FALSE; mBits.mHasScrollableRowGroup = PR_FALSE;
// XXX We really shouldn't do this, but if we don't then we'll have a
// problem with the tree control...
#if 0
mColumnWidthsLength = 0; mColumnWidthsLength = 0;
mColumnWidths = nsnull; mColumnWidths = nsnull;
#else
mColumnWidthsLength = 10;
mColumnWidths = new PRInt32[mColumnWidthsLength];
nsCRT::memset (mColumnWidths, 0, mColumnWidthsLength*sizeof(PRInt32));
#endif
mCellMap = new nsCellMap(0, 0); mCellMap = new nsCellMap(0, 0);
} }

Просмотреть файл

@ -278,8 +278,16 @@ nsTableFrame::nsTableFrame()
mBits.mCellMapValid = PR_TRUE; mBits.mCellMapValid = PR_TRUE;
mBits.mIsInvariantWidth = PR_FALSE; mBits.mIsInvariantWidth = PR_FALSE;
mBits.mHasScrollableRowGroup = PR_FALSE; mBits.mHasScrollableRowGroup = PR_FALSE;
// XXX We really shouldn't do this, but if we don't then we'll have a
// problem with the tree control...
#if 0
mColumnWidthsLength = 0; mColumnWidthsLength = 0;
mColumnWidths = nsnull; mColumnWidths = nsnull;
#else
mColumnWidthsLength = 10;
mColumnWidths = new PRInt32[mColumnWidthsLength];
nsCRT::memset (mColumnWidths, 0, mColumnWidthsLength*sizeof(PRInt32));
#endif
mCellMap = new nsCellMap(0, 0); mCellMap = new nsCellMap(0, 0);
} }