fixed minColSpan to always be at least one. This helps support empty rows,
among other problems. git-svn-id: svn://10.0.0.236/trunk@9206 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -173,7 +173,7 @@ nsTableColFrame* nsCellMap::GetColumnFrame(PRInt32 aColIndex) const
|
||||
void nsCellMap::SetMinColSpan(PRInt32 aColIndex, PRBool aColSpan)
|
||||
{
|
||||
NS_ASSERTION(aColIndex<mColCount, "bad aColIndex");
|
||||
NS_ASSERTION(aColSpan>=0, "bad aColSpan");
|
||||
NS_ASSERTION(aColSpan>=1, "bad aColSpan");
|
||||
|
||||
// initialize the data structure if not already done
|
||||
if (nsnull==mMinColSpans)
|
||||
|
||||
@@ -772,7 +772,7 @@ void nsTableFrame::SetMinColSpanForTable()
|
||||
minColSpan = PR_MIN(minColSpan, colSpan);
|
||||
}
|
||||
}
|
||||
if (1!=minColSpan)
|
||||
if (1<minColSpan)
|
||||
mCellMap->SetMinColSpan(colIndex, minColSpan);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -173,7 +173,7 @@ nsTableColFrame* nsCellMap::GetColumnFrame(PRInt32 aColIndex) const
|
||||
void nsCellMap::SetMinColSpan(PRInt32 aColIndex, PRBool aColSpan)
|
||||
{
|
||||
NS_ASSERTION(aColIndex<mColCount, "bad aColIndex");
|
||||
NS_ASSERTION(aColSpan>=0, "bad aColSpan");
|
||||
NS_ASSERTION(aColSpan>=1, "bad aColSpan");
|
||||
|
||||
// initialize the data structure if not already done
|
||||
if (nsnull==mMinColSpans)
|
||||
|
||||
@@ -772,7 +772,7 @@ void nsTableFrame::SetMinColSpanForTable()
|
||||
minColSpan = PR_MIN(minColSpan, colSpan);
|
||||
}
|
||||
}
|
||||
if (1!=minColSpan)
|
||||
if (1<minColSpan)
|
||||
mCellMap->SetMinColSpan(colIndex, minColSpan);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user