Issue 111927 - Incorrect cursor position after end of block select
Summary: Incorrect cursor position after end of block select
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 3.2
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-29 16:43 UTC by Joe Smith
Modified: 2017-05-20 10:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
screen capture showing selection after paste (249.14 KB, image/png)
2010-05-31 17:24 UTC, Joe Smith
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Joe Smith 2010-05-29 16:43:36 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).
Comment 1 michael.ruess 2010-05-31 14:53:45 UTC
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.
Comment 2 Joe Smith 2010-05-31 16:22:07 UTC
> 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.
Comment 3 Joe Smith 2010-05-31 16:33:19 UTC
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!
Comment 4 Joe Smith 2010-05-31 17:23:12 UTC
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.
Comment 5 Joe Smith 2010-05-31 17:24:43 UTC
Created attachment 69737 [details]
screen capture showing selection after paste
Comment 6 Joe Smith 2013-09-13 15:39:08 UTC
Tested again with AOO 4.0 on Fedora Linux 17: same (or nearly same) results.
Comment 7 Marcus 2017-05-20 10:45:25 UTC
Reset the assignee to the default "issues@openoffice.apache.org".