mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Fixed infinite loop when dropping table cells, added FE_Alert when not all cells are pasted
This commit is contained in:
parent
3a20ca33dd
commit
1e460a5459
@ -14247,7 +14247,7 @@ void CEditBuffer::PasteTable( CEditTableCellElement *pCell, CEditTableElement *p
|
||||
// in ReplaceSpecialCells since we want relayout to happen first
|
||||
// THIS LEAVES AN UGLY SELECTION FROM THE ORIGINAL SOURCE TO
|
||||
// THE CURRENT CURSOR LOCATION - DOESN'T MAKE SENSE!!!
|
||||
//FE_Alert(m_pContext, XP_GetString(XP_EDT_NOT_ALL_CELLS_PASTED));
|
||||
FE_Alert(m_pContext, XP_GetString(XP_EDT_NOT_ALL_CELLS_PASTED));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3159,7 +3159,7 @@ XP_Bool CEditTableElement::ReplaceSpecialCells(CEditTableElement *pSourceTable,
|
||||
// Skip over cells to get to the next source row
|
||||
bAllSourceCellsPasted = FALSE;
|
||||
while( pSourceCell && iSourceRow == iPrevSourceRow )
|
||||
pSourceCell->GetNextCellInTable(&iSourceRow);
|
||||
pSourceCell = pSourceCell->GetNextCellInTable(&iSourceRow);
|
||||
if( !pSourceCell )
|
||||
goto REPLACE_DONE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user