fix oversight with zero rowspan handling bug 370808 r/sr=bzbarsky

This commit is contained in:
bmlk%gmx.de 2007-02-18 18:50:39 +00:00
parent 284a5ea424
commit 9845cab803

View File

@ -2807,7 +2807,13 @@ nsCellMapColumnIterator::GetNextFrame(PRInt32* aRow, PRInt32* aColSpan)
PRInt32 rowspanOffset = cellData->GetRowSpanOffset();
nsTableCellFrame* cellFrame = mCurMap->GetCellFrame(mCurMapRow, mCol, *cellData, PR_FALSE);
NS_ASSERTION(cellFrame,"Must have usable originating data here");
IncrementRow(cellFrame->GetRowSpan() - rowspanOffset);
PRInt32 rowSpan = cellFrame->GetRowSpan();
if (rowSpan == 0) {
AdvanceRowGroup();
}
else {
IncrementRow(rowSpan - rowspanOffset);
}
continue;
}