bug 113680 fix for horizontal rule strangeness after tables. when reflowing tables, do not reflow beyond the last cell

This commit is contained in:
mjudge 1998-06-12 16:05:46 +00:00
parent 7206d30a96
commit d415e492d8

View File

@ -2061,8 +2061,9 @@ void CEditBuffer::Reflow( CEditElement* pStartElement,
if ( pEndElement ) {
CEditElement* pTable = pEndElement->GetTopmostTableOrLayer();
if ( m_bDisplayTables && pTable) {
// If this is in a table, skip after it.
pEndElement = pTable->GetLastMostChild()->NextLeaf();
// If this is in a table, skip after it.
//do not go beyond the last cell for reflow. bad things happed when we reflow the wrong things
pEndElement = pTable->GetLastMostChild();//->NextLeaf();
}
}