Apache OpenOffice (AOO) Bugzilla – Issue 111927
Incorrect cursor position after end of block select
Last modified: 2017-05-20 10:45:25 UTC
Running OOo 3.2 on Fedora Linux 11. Steps to reproduce: 1) File > New > Text Document 2) Insert some text, for example: dt,F3 3) Edit > Selection Mode > Block Area 4) Select a block of text, note the position of Writer's editing cursor (at final mouse position) 5) Click below the inserted text; the editing cursor is visible at that position 6) Press Enter Expected result: Enter should insert a paragraph break at the new position of the editing cursor. Actual result: The paragraph break is inserted at the position where the editing cursor was at the end of the block selection. This may be related to Issue 84366 I also see this in OOo 3.2.1rc2, and earlier releases (3.0.1 was as far back as I tested).
When clicking somewhere in "white space" below text to discard a block selection, the "Enter" key will lead to a paragraph break at the end of the former selection, not where the cursor blinks. This only seems to happen with the "Enter" key, normal text will be positioned correctly.
> This only seems to happen with the "Enter" key, normal text will be > positioned correctly. Right; other keys seem ok, but paste (Ctrl-v) will paste the block-selected text at the previous cursor position. That's how I noticed it, trying to copy a block and paste it after the paragraph. I thought pressing Enter would make it easier to see what happens. It does seem to only happen if, at step 5, you click at the very end of the document.
Hmm... typing normal characters instead of Enter (at step 6) does insert the normal characters at the visible cursor, but then pressing Enter inserts a paragraph break, not at the typing position, but at the end of the block selection. Sweet!
There is also a (lovely!) problem with the selection extents in the block selection that occurs in this context. If, at step 6, you paste the block selection, then Undo/Redo, the result contains the pasted block, but each element in the block has a selection extent that goes all the way to the end of the pasted block. This makes a lovely display in the newer versions where the selection is transparent (see the screenshot attached). The displayed selections are accurate: if I then cut/paste the text, I get multiple, overlapping copies of the elements in the block selection.
Created attachment 69737 [details] screen capture showing selection after paste
Tested again with AOO 4.0 on Fedora Linux 17: same (or nearly same) results.
Reset the assignee to the default "issues@openoffice.apache.org".