Bug 146350 - Select all + changing language scrolls to the end
Summary: Select all + changing language scrolls to the end
Status: RESOLVED DUPLICATE of bug 137603
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-21 11:34 UTC by Szasz-Fabian Jozsef
Modified: 2023-05-08 16:40 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 Szasz-Fabian Jozsef 2021-12-21 11:34:26 UTC
Description:
When selecting all text Ctrl+A and changing the language (on the middle of the status bar), the document position is getting scrolled to the very end.
When working with longer documents, this is quite unproductive, the last position of writing has to be found again...

Steps to Reproduce:
1. Open a long document
2. Ctrl+A
3. Change the language

Actual Results:
The scroll position is changed to the end of the document.

Expected Results:
Do not change the scroll position.


Reproducible: Always


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: TextDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no
Comment 1 Michael Warner 2021-12-21 17:16:06 UTC
Repro in:
Version: 7.2.5.1 (x64) / LibreOffice Community
Build ID: 6d497ff5e83a906a307eb25cce314d40c0b8624f
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 2 LeroyG 2021-12-21 18:24:06 UTC
This will happen with font color, font highlight color, font name, etc. No way to change it, because when you select all text, the cursor goes to the last position.

As a workaround, change the languange (font color, font highlight, font name, etc.) in the Paragraph Style.
Second workaround: before selecting all, add a singular text in the choosen position (something like "ffff"), then find that text (Ctrl+H, ffff, Enter).
Comment 3 Szasz-Fabian Jozsef 2021-12-27 20:44:36 UTC
It is relatively an easy task to prevent scrolling to the end:

Prior selecting all text and moving the cursor to the end of the document, save the cursor position in a variable.

- After every operation on the selected text block, restore the scroll position by calculating the theoretical cursor position, based on the saved variable (during the selected all text the user may zoom, etc).

- Before a cursor movement operation, after deselecting the text block, restore the cursor position from the variable, after this treat the cursor movement (arrows, page up/down, home, end, etc.).
Comment 4 Michael Stahl (allotropia) 2023-05-08 16:40:35 UTC

*** This bug has been marked as a duplicate of bug 137603 ***