Fix redraw problem on refresh with inline editing.

This commit is contained in:
pinkerton%netscape.com 1998-08-11 19:15:28 +00:00
Родитель e11c092cc3
Коммит 956db7dc06
1 изменённых файлов: 12 добавлений и 1 удалений

Просмотреть файл

@ -1908,10 +1908,21 @@ void CStandardFlexTable::DrawCell(
insetRect.right--;
EraseCellBackground ( inCell, inLocalRect );
// Save pen state
// If we are inline-editing, don't redraw the cell that is being edited. However, there
// is a problem where if a refresh occurs before the inline becomes visible, the icon of
// the row being edited never gets drawn (because we don't call DrawCellContents(), duh!).
// If that is the case, just draw the icon. The best fix is to not have that redraw happen,
// but this can tide us over until we can get all the extra redraws out (just in case we
// have to ship before that happens). I guess making it stink would get those extra redraw
// bugs fixed faster, but that is another debate for another time....
ApplyTextStyle(inCell.row);
if ( mRowBeingEdited != inCell.row )
DrawCellContents(inCell, insetRect);
else {
if ( inCell.col == GetHiliteColumn() )
DrawIcons ( inCell, inLocalRect );
}
} // CStandardFlexTable::DrawCell