Bug 119846 - Writer jumps to the end of the file when changing paragraph attributes
Summary: Writer jumps to the end of the file when changing paragraph attributes
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-View-Jumps
  Show dependency treegraph
 
Reported: 2018-09-13 13:34 UTC by J22Gim
Modified: 2023-09-25 13:56 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J22Gim 2018-09-13 13:34:59 UTC
Description:
When applying an intended action (ie change paragraph property), Writer adds non-intended behavior (ie moves the current view to the end of the file).
This makes it quite annoying, especially when working with several pages-long files because you have to manually search wherever you were writing/reading to come back to the same document location you were at before applying the change.

Steps to Reproduce:
1. Open/create a file with at least 2 pages of any text
2. Place your cursor at any point except the end of the file (eg at the begining of the 1st page).
3. Select all text
3. Change the "blow paragraph spacing" to any number

Actual Results:
Writer applies the change but jumps to the end of the file.

Expected Results:
Writer applies the change without changing the location of the current cursor or view.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.0.1.1
Build ID: 60bfb1526849283ce2491346ed2aa51c465abfe6
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: kde4; 
Locale: en-US (en_US.UTF-8); Calc: group
Comment 1 raal 2018-09-13 20:45:06 UTC
confirm Version: 6.2.0.0.alpha0+
Build ID: 433fce6571d4b9121374047324a7d2d2722ac3e4
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk3;
Comment 2 Thomas Lendo 2018-09-13 21:10:41 UTC
Tested also with

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4

and changing version to 'Inherited from OOo'.
Comment 3 QA Administrators 2019-09-14 02:47:59 UTC Comment hidden (obsolete)
Comment 4 J22Gim 2020-02-11 13:25:05 UTC
Hi, I can confirm that the original description applies exactly the same to my current version (6.4.0.3)

I just tried: open a document with several pages of text. Place the cursor somewhere in the 1st page. Then CTRL-A to select all text and apply any format (eg paragraph align). Writer applies the format and automatically jumps to the end of the text (ie last page).

So, the bug is still present.

Version: 6.4.0.3
Build ID: libreoffice-6.4.0.3-snap1
CPU threads: 4; OS: Linux 5.3; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 5 J22Gim 2020-04-22 01:23:47 UTC
Still reproducible.

Version: 6.4.3.2
Build ID: libreoffice-6.4.3.2-snap1
CPU threads: 4; OS: Linux 5.3; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 6 J22Gim 2020-10-13 15:48:29 UTC
Still present in Version: 7.0.2.2
Build ID: 00(Build:2)
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.0.2_rc2-0ubuntu0.20.04.2
Calc: threaded
Comment 7 J22Gim 2021-06-07 16:07:03 UTC
Still present

Version: 7.1.3.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.1.3~rc2-0ubuntu0.20.04.1~lo1
Calc: threaded
Comment 8 J22Gim 2021-09-21 21:18:06 UTC
Still the same behavior

Version: 7.2.1.2 / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.2.1~rc2-0ubuntu0.20.04.1~lo3
Calc: threaded
Comment 9 J22Gim 2022-10-07 09:56:18 UTC
Same behavior.

Apparently the problem is that LO does not remember the location of the cursor at the moment of select-all action.

Also apparently the select-all action selects from the top of the document to the end of it. Thus the "cursor location" is at the end of the document, and that is where you go after making the change (eg increase the after-paragraph space).

This can be confirmed if you go to the end of the document, select all the text using CTRL+SHIFT+HOME (ie, you're selecting from the bottom to the top), then the "cursor location" seems to be set at the top of the document, and now if you make the change the cursor does NOT jump to the bottom of the document, it stays at the top.

So in the problem is the combination of these 2 things:
1) when you select-all (CTRL+A) Writer selects *from top to bottom*, and somehow leaves the cursor at the bottom.
2) in addition, Writer does NOT remember where the cursor was located when you pressed CTRL+A

Thus, after applying the requested change (eg post-paragraph space), the *document view* jumps (not the cursor) to the end of the document.



Version: 7.4.1.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.4.1~rc2-0ubuntu0.22.04.1~lo1
Calc: threaded
Comment 10 J22Gim 2023-01-03 11:51:32 UTC
Still the same behavior 

Version: 7.4.2.3 / LibreOffice Community
Build ID: 40(Build:3)
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.4.2~rc3-0ubuntu0.22.04.1~lo1
Calc: threaded
Comment 11 J22Gim 2023-03-29 08:54:28 UTC
Still present in Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 4:7.5.1~rc2-0ubuntu0.22.04.1~lo1
Calc: threaded
Comment 12 J22Gim 2023-09-25 13:56:29 UTC
Sill present

Version: 7.3.7.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 24; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.7-0ubuntu0.22.04.3
Calc: CL