mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 03:00:30 +00:00
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:
parent
27f17f0646
commit
74d5115b8c
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user