Fixed infinite loop when dropping table cells, added FE_Alert when not all cells are pasted

This commit is contained in:
cmanske%netscape.com 1998-10-03 20:21:06 +00:00
parent 3a20ca33dd
commit 1e460a5459
2 changed files with 2 additions and 2 deletions

View File

@ -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));
}
}

View File

@ -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;
}