Bug 157610

Summary: Master Document Navigator: Proposal to not insert Text when a File or Index is inserted
Product: LibreOffice Reporter: Jim Raykowski <raykowj>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: 79045_79045
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103030    

Description Jim Raykowski 2023-10-05 07:57:12 UTC
When using the Navigator to insert a 'File' or 'Index' in a master document a text paragraph is always inserted with it which is shown as a 'Text' entry in the Navigator. The user can insert a 'Text' entry instead of having one automatically inserted when a File or Index is inserted.

Steps to repro:

1) Open a new Master Document file (Menu > File > New > Master Document)
2) Click on the 'Text' entry in the Navigator
3) tool box > Insert > File > insert a file
Navigator shows:
File 1
Text

4) Click on the File 1
5) tool box > Insert > File > insert a file

Expected results:
Navigator shows:
File 2
File 1
Text

Actual results:
Navigator shows:
File 2
Text
File 1
Text

This also happens when Index is inserted in place of the steps that insert a file.

Previous to the patch made for Bug 157315, 'Text' did not insert when a file was inserted. The bug there also caused the paragraph that is inserted before the linked file section insert to be overwrote by the linked file section which results in the file to be only shown in the Navigator.
Comment 1 Roman Kuznetsov 2023-10-09 19:41:03 UTC
Confirm

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2a217a80bf383ddab0a5e0959ab2fd907dfd3406
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL threaded