Bug 160862

Summary: Converting a DOCX to ODT using command line export each frame twice
Product: LibreOffice Reporter: Mike Kaganski <mikekaganski>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: buzea.bogdan, michael.stahl, stephane.guillou
Priority: medium Keywords: bisected, filter:odt, regression
Version: 7.6.0.0 alpha0+   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=152872
https://bugs.documentfoundation.org/show_bug.cgi?id=119800
Whiteboard:
Crash report or crash signature: Regression By: Michael Stahl
Bug Depends on:    
Bug Blocks: 114423    

Description Mike Kaganski 2024-04-29 20:44:45 UTC
Download attachment 144783 [details] from bug 119800. Open and see that it shows one frame with a table, unless hidden characters are shown, in which case two frames are seen (119800 re-introduced in bug 137469), and the navigator shows two frames and two tables. Convert it to ODT using command line like

 soffice --convert-to odt path/to/tdf119800-1.odt

Check that the resulting ODT has four frames (two per each original fame).

Regression from commit 2bcfb7231b5ca74f02274cfb74ca8463f78905d6 (tdf#152872 sw: conditionally hide paragraph breaks, 2023-01-10).

Since commit 69ed893087f89d176a5ec4b263ce8d75774be72b (tdf#160253: fix list identifier export decision code, 2024-04-24), exporting using a debug build fails an assertion in XMLTextParagraphExport::RecordNodeIndex, which is a correct failure, showing exactly the problem that is described here.
Comment 1 Stéphane Guillou (stragu) 2024-05-15 03:00:24 UTC
Reproduced with recent daily build:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0dcaff6043e1f24ce0fa354dff80a86e40622247
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Same with command line or save as ODT from GUI.