Lines 54-60
Link Here
|
54 |
* |
54 |
* |
55 |
* All Rights Reserved. |
55 |
* All Rights Reserved. |
56 |
* |
56 |
* |
57 |
* Contributor(s): _______________________________________ |
57 |
* Contributor(s): Kohei Yoshida__________________________ |
58 |
* |
58 |
* |
59 |
* |
59 |
* |
60 |
************************************************************************/ |
60 |
************************************************************************/ |
Lines 598-603
Link Here
|
598 |
aAnchorPos.Put( nPosX, nPosY, nTab ); |
598 |
aAnchorPos.Put( nPosX, nPosY, nTab ); |
599 |
bStarted = TRUE; |
599 |
bStarted = TRUE; |
600 |
} |
600 |
} |
|
|
601 |
// #i3875# *Hack* When a new cell is Ctrl-clicked with no pre-selected cells, |
602 |
// it highlights that new cell as well as the old cell where the cursor is |
603 |
// positioned prior to the click. A selection mode via Shift-F8 should also |
604 |
// follow the same behavior. |
605 |
else if ( pViewData->IsSelCtrlMouseClickEnabled() ) |
606 |
{ |
607 |
USHORT nOldX = pViewData->GetCurX(); |
608 |
USHORT nOldY = pViewData->GetCurY(); |
609 |
|
610 |
pView->InitBlockMode( nOldX, nOldY, nTab, TRUE ); |
611 |
pView->MarkCursor( (USHORT) nOldX, (USHORT) nOldY, nTab ); |
612 |
|
613 |
if ( nOldX != nPosX || nOldY != nPosY ) |
614 |
{ |
615 |
pView->DoneBlockMode( TRUE ); |
616 |
pView->InitBlockMode( nPosX, nPosY, nTab, TRUE ); |
617 |
pView->MarkCursor( (USHORT) nPosX, (USHORT) nPosY, nTab ); |
618 |
aAnchorPos.Put( nPosX, nPosY, nTab ); |
619 |
} |
620 |
|
621 |
bStarted = TRUE; |
622 |
} |
601 |
} |
623 |
} |
602 |
|
624 |
|
603 |
pView->SetCursor( (USHORT) nPosX, (USHORT) nPosY ); |
625 |
pView->SetCursor( (USHORT) nPosX, (USHORT) nPosY ); |