Bug 163244 - Undoing DF of a selection - cancels the selection
Summary: Undoing DF of a selection - cancels the selection
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Textbox Undo-Redo Selection
  Show dependency treegraph
 
Reported: 2024-10-01 22:19 UTC by Eyal Rozenberg
Modified: 2025-01-02 09:14 UTC (History)
2 users (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 Eyal Rozenberg 2024-10-01 22:19:25 UTC
Reproduction instructions:

1. Create a new document
2. Create a new text box
3. Type some text into the textbox, e.g. "abcd"
4. Select part of that text, e.g. select the "bc"
5. Press the Bold toolbar button
6. On the menus, choose Edit > Undu; alternatively, hit the Undo shortcut key (Ctrl+Z on Linux)

Expected result:
"bc" has lost the bold weight from step 5.
The cursor is placed after the c.
"bc" IS selected.

Actual result
"bc" has lost the bold weight from step 5.
The cursor is placed after the c.
"bc" IS NOT selected.

Note that if you do this in Writer, but in the main context area (i.e. not in a textbox) - this doesn't happen, and we get the expected result.

Seen with:

Version: 24.8.1.2 (X86_64) / LibreOffice Community
Build ID: 87fa9aec1a63e70835390b81c40bb8993f1d4ff6
CPU threads: 4; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US
Calc: threaded
Comment 1 BogdanB 2025-01-02 09:14:19 UTC
Confirm with
Version: 25.2.0.1 (X86_64) / LibreOffice Community
Build ID: ddb2a7ea3a8857aae619555f1a8743e430e146c9
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded