mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Fix for 30369. r=ben
This commit is contained in:
parent
9183bd2c65
commit
16f4e56c75
@ -1843,6 +1843,10 @@ nsTreeRowGroupFrame::GetCellFrameAtIndex(PRInt32 aRowIndex, PRInt32 aColIndex,
|
||||
#ifdef DEBUG_tree
|
||||
printf("Looking for cell (%d, %d)..", aRowIndex, aColIndex);
|
||||
#endif
|
||||
|
||||
// Init the result to null.
|
||||
*aResult = nsnull;
|
||||
|
||||
// The screen index = (aRowIndex - mCurrentIndex)
|
||||
PRInt32 screenIndex = aRowIndex - mCurrentIndex;
|
||||
|
||||
@ -1858,7 +1862,7 @@ nsTreeRowGroupFrame::GetCellFrameAtIndex(PRInt32 aRowIndex, PRInt32 aColIndex,
|
||||
|
||||
nsTableCellMap * cellMap = tableFrame->GetCellMap();
|
||||
CellData* cellData = cellMap->GetCellAt(screenIndex, aColIndex);
|
||||
if (cellData->IsOrig()) { // the cell originates at (rowX, colX)
|
||||
if (cellData && cellData->IsOrig()) { // the cell originates at (rowX, colX)
|
||||
cellFrame = cellData->GetCellFrame();
|
||||
if (cellFrame) {
|
||||
*aResult = (nsTreeCellFrame*)cellFrame; // XXX I am evil.
|
||||
|
Loading…
Reference in New Issue
Block a user