Issue 94854

Summary: mouse-selection/cursor position selection problem in document with note and page breaks
Product: Writer Reporter: rgb <rgb.mldc>
Component: editingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: axel.niedenhoff, issues, max.odendahl
Version: OOo 3.0 RC4Keywords: oooqa
Target Milestone: ---   
Hardware: All   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Sample document
none
stripped down sample document none

Description rgb 2008-10-10 17:51:00 UTC
I found a really weird behaviour on one Writer document loaded on OOo 3 rc4. On
some pages, if I click on the first characters of any line the cursor jumps to
the beginning of the page or even to the footer of the previous page!. If I cut
the last 30 pages from the document, this behaviour disappears!
I will add a sample document. Feedback on the Community forums suggest that the
problem is mainly on Linux:
http://user.services.openoffice.org/en/forum/viewtopic.php?f=7&t=10533
Comment 1 rgb 2008-10-10 17:52:27 UTC
Created attachment 57113 [details]
Sample document
Comment 2 rgb 2008-10-10 17:55:56 UTC
Here it is a sample document.
I marked some of the problematic pages (there are more) by highlighting part of
the text in red. If you have the Linux Libertine font in your system, the
highlighted text will correspond to the text that makes the cursor jump.
The file does not show the problem when opened with OOo 2.4.1.
The problem is present in both, the rc4 64 bits version and the final 32 bits
version.
Comment 3 michael.ruess 2008-10-16 15:10:27 UTC
Reassigned to SBA.
Comment 4 smith77 2009-05-02 00:23:30 UTC
Tested on OOo310m7 with windows vista .
Was not able to reproduce .
Comment 5 Mechtilde 2010-01-09 13:42:02 UTC
need more information to reproduce 
Comment 6 rgb 2010-01-09 18:07:26 UTC
Just open the attached document on Linux, click on the text marked red and the
cursor will jump to the beginning of the page or even to the footer of previous
page. I can reproduce the behaviour with the attached document on 3.2rc1 64
bits.
The document was originally created on OOo 2.x (I only "masked" the text to make
it public). Recreating (copy/paste unformatted text) the document on 3.x fix the
problem so it is something related with how OOo 3.x manage documents from OOo
2.x. 
Everything about the problem is in the previous messages.
Comment 7 Mechtilde 2010-01-09 18:46:02 UTC
can't reproduce it with 3.2 RC1 32 bit
Comment 8 rgb 2010-01-10 14:50:40 UTC
That means this is a Linux AND 64 bits only problem.
Comment 9 lohmaier 2010-03-23 18:00:04 UTC
Created attachment 68506 [details]
stripped down sample document
Comment 10 lohmaier 2010-03-23 18:19:22 UTC
confirming (3.2.0, linux 32bit - as the reporter uses 64bit → Platform ALL).

Important aspects:
* only affects mouse-action (keyboard movement/selection not affected)
* the page-breaks
* the comment/note

The problem only occurs when View|Notes is enabled. It does not occur when the 
note is not displayed.

It also does not occur when the note or one of the page-breaks is removed.
(the note does not need to be at the last character/paragraph, other text can 
follow as in the original bugdoc)

To reproduce:
0) open the reduced sample.
2) Go to page 3 (the second page in the document, page number changed to odd 
number, thus OOo adds the (in normal editing view invisible) page 2)
3a) click on the red highlighted text to place the cursor into one of the words.

expected: Cursor within the word, where you clicked.
actual: Cursor is moved to the beginning of page 3

3b) place the cursor after one of the highlighted words and try to select (with 
the mouse) to the left to include the highlighted word.

expected: selection extends as one drags along
actual: selection is extended to the beginning of page 3 as soon as you reach 
the highlighted word.

similarly, when you go to the last page of the document and try to position the 
cursor into the highlighted word there, the cursor jumps into the footer of the 
previous page - selection is not possible in this case.
Comment 11 max.odendahl 2010-03-23 18:42:59 UTC
>similarly, when you go to the last page of the document and try to position the 
>cursor into the highlighted word there, the cursor jumps into the footer of the 
>previous page - selection is not possible in this case.

this I can reproduce, the other stuff I can't.
Comment 12 anieden 2010-06-19 20:42:33 UTC
I have found this problem, too, with one of my own documents. I can reproduce it
in OpenOffice.org 3.2 on Ubuntu Linux 10.04 and in OpenOffice.org 3.2.1 on
Windows XP (both 32-bit). To me, it looks as if the combination of a note and a
page break makes Writer misinterpret mouse coordinates in the left-hand quarter
of the page.

For me, right-clicking is also affected. When I right-click to get the context
menu, the settings in that menu are the ones for header line (which is to be
expected, as the cursor has jumped already). But the position of the context
menu is where I actually clicked. Maybe this gives a further clue.
Comment 13 Marcus 2017-05-20 11:15:14 UTC
Reset assigne to the default "issues@openoffice.apache.org".