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