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

            Bug ID: 119635
           Summary: Writer: incorrect cursor placement when moving to next
                    paragraph after deleting text
           Product: LibreOffice
           Version: 6.1.0.2 rc
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: octa...@alvarezp.org

Description:
It looks like Writer keeps track of the horizontal location of the cursor in
pixels instead of character number. When erasing a word and this moves the
cursor, it seems that Writer does not properly update this value. When moving
to the next paragraph, the cursor ends up in the wrong location.

Steps to Reproduce:
1. New Writer document.
2. Type "Hello beautiful world". Hit Enter.
3. Type "Hello beautiful world" again. Hit Enter.
4. Select the word "beautiful" you can use either double-click the word or use
Shift+Right to select the word from left to right.
5. Press "Delete".
6. Press the Down arrow.

Actual Results:
Moving to the next paragraph places the cursor at the end of "beautiful" in the
second paragraph.

Expected Results:
Moving to the next paragraph should place the cursor at the beginning of
"beautiful" in the second paragraph.


Reproducible: Always


User Profile Reset: No



Additional Info:
This does not happen if the word is selected from right to left. It is possible
to see the cursor position while the word is selected, so it is clear to see
that when selecting from right to left this problem does not occur because the
cursor is at the beginning of "beautiful" before deleting the word.

This even occurs after writing some text!
1. Redo all the steps until step 5.
...
5. Press "Delete" (this step is optional, happens whether done or not)
6. Type "cruel". Do not press Enter.
7. Press the "Down arrow".

Same behavior. The cursor should be at the middle of "beautiful". Instead,
Writer places the cursor at the end.



Version: 6.1.0.2
Build ID: 1:6.1.0~rc2-3
CPU threads: 4; OS: Linux 4.2; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.utf8); Calc: group threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to