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
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
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).
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.).
*** This bug has been marked as a duplicate of bug 137603 ***