Bug 154802

Summary: Duplicating a slide with focus in text box keeps the focus in the original slide, overlaying the text of the two slides
Product: LibreOffice Reporter: thedeadlysarcasm
Component: ImpressAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: minor CC: ilmari.lauhakangas, szymon.klos
Priority: medium Keywords: bibisected, bisected, regression
Version: 7.2.0.0.alpha0+   
Hardware: x86-64 (AMD64)   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By: Szymon Kłos
Bug Depends on:    
Bug Blocks: 117767    

Description thedeadlysarcasm 2023-04-14 07:10:46 UTC
Description:
Under certain conditions, the "duplicate slide" command behaves anomalously, leading to UI and formatting problems.

Steps to Reproduce:
1. Open presentation (or create new presentation).
2. Write something in a text box.
3. While the text box is still in focus (i.e., the cursor is still on the text), select Slide > Duplicate Slide from the menu.
4. While keeping focus on the text box, delete some text and write something else.

Actual Results:
The slide is duplicated; however, the slide that is selected is still the previous one (the one that was duplicated), instead of the new one.

Furthermore, when writing new text in the text box (without losing focus on it), the program still displays the old text below the new text.

Expected Results:
The slide is duplicated as normal.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.5.2.2 (X86_64) / LibreOffice Community
Build ID: 53bb9681a964705cf672590721dbc85eb4d0c3a2
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: it-IT (it_IT); UI: it-IT
Calc: threaded

This is a bug I'd noticed in previous versions, too, but I'm only filing it now.
Comment 1 Buovjaga 2023-04-19 14:17:15 UTC
Bibisected with linux-64-7.2 to bd93f5cec54350b6f07c5b7cd4987ea3762e3f40
impress: don't exit textbox editing when new slide was added