Fix for bug 135764 - mozilla crashes in DOM Inspector - Trunk [@ nsTreeBodyFrame::SetBounds]

r=bryner, sr=ben, a=scc


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119744 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
varga%utcru.sk
2002-04-24 21:05:32 +00:00
parent 45b43ac004
commit 6c1e42594e

View File

@@ -585,7 +585,7 @@ nsTreeBodyFrame::SetBounds(nsBoxLayoutState& aBoxLayoutState, const nsRect& aRec
PRBool recompute = (aRect != mRect);
nsresult rv = nsLeafBoxFrame::SetBounds(aBoxLayoutState, aRect);
if (recompute) {
if (mView && recompute) {
mInnerBox = GetInnerBox();
if (!mHasFixedRowCount)
mPageCount = mInnerBox.height / mRowHeight;