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

r=bryner, sr=ben


git-svn-id: svn://10.0.0.236/trunk@119605 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
varga%utcru.sk 2002-04-23 10:36:23 +00:00
parent ce5a8fbe08
commit 7ce1dc8280

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;