modified a conditional statement in ChangeTableSelection so that table selection can be correct on the mac when the movement is ED_MOVE_NONE (unlike other platforms, macfe passes in a NULL pData). Reviewed by cmanske and brade.

This commit is contained in:
clu%netscape.com 1998-08-07 09:17:19 +00:00
parent 27f17f0646
commit 74d5115b8c

View File

@ -7257,7 +7257,9 @@ void CEditBuffer::ChangeTableSelection(ED_HitType iHitType, ED_MoveSelType iMove
ClearTableAndCellSelection();
// First see if we are changing the current selection type
if( iHitType != ED_HIT_NONE && pData && iHitType != pData->iSelectionType )
if( iHitType != ED_HIT_NONE &&
((pData && iHitType != pData->iSelectionType) ||
(pData == NULL && iMoveType == ED_MOVE_NONE)) )
{
// This is relatively simple as long as we can trust that the
// caret is in the "focus cell"