From e2c0c7cd77316a3b663eefdb95ec05e4ebed2864 Mon Sep 17 00:00:00 2001 From: "bmlk@gmx.de" Date: Sun, 6 Apr 2008 05:16:45 -0700 Subject: [PATCH] lookup all columns for possible originating cells, bug 426706 r/sr=bzbarsky a=beltzner --- layout/tables/nsTableRowGroupFrame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layout/tables/nsTableRowGroupFrame.cpp b/layout/tables/nsTableRowGroupFrame.cpp index d81ae91c9a18..fc8b9f74f0fb 100644 --- a/layout/tables/nsTableRowGroupFrame.cpp +++ b/layout/tables/nsTableRowGroupFrame.cpp @@ -1757,7 +1757,8 @@ nsTableRowGroupFrame::FindFrameAt(PRInt32 aLineNumber, } nsIFrame* frame = nsnull; - for (PRInt32 i = 0; i < numCells; i++) { + PRInt32 colCount = table->GetColCount(); + for (PRInt32 i = 0; i < colCount; i++) { CellData* data = cellMap->GetDataAt(aLineNumber, i); if (data && data->IsOrig()) { frame = (nsIFrame*)data->GetCellFrame();