https://bugs.documentfoundation.org/show_bug.cgi?id=146994

Mike Kaganski <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Mike Kaganski <[email protected]> ---
I suspect regression from
https://git.libreoffice.org/core/+/ac3b66057ba677903b6de354317417b267be0fa0

>  author       Kohei Yoshida <[email protected]>     Thu Sep 16 11:09:29 
> 2010 +0200
> committer     Fridrich Štrba <[email protected]>      Thu Sep 16 
> 11:09:29 2010 +0200
> calc-selection-fixed-cursor.diff: Migrated
> 
> n#502717, i#21869, i#97093, when making selection, don't move the cursor 
> position

It is absent in OOo/AOO; it introduced the ScTabView::ExpandBlock that
implements current block expansion logic in "normal selection mode" case.

The problem there is that previous cell paste has initialized Own block mode;
and thus nBlockEndX and nBlockEndY are both 0 (i.e., A1). InitBlockMode isn't
executed (even if you remove the if, the function has own internal check), so
the variables don't get adjusted. And the movement (moveCursorByProtRule,
moveCursorByMergedCell) operate based on that (0,0).

But I do not understand the implications, so I beware to touch the code.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to