Bug 126714

Summary: Assertion failure when moving paragraphs
Product: LibreOffice Reporter: Gabor Kelemen (allotropia) <kelemeng>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: telesto
Priority: medium Keywords: haveBacktrace
Version: 6.4.0.0.alpha1+   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 83946, 105537    
Attachments: Backtrace of the assertion error

Description Gabor Kelemen (allotropia) 2019-08-05 21:50:29 UTC
Created attachment 153149 [details]
Backtrace of the assertion error

Attached gdbtrace is created when moving paragraphs with change tracking enabled an the Bullets and Numbering toolbar is used.

1, Create a simple text file with some paragraphs
2, Enable Change Tracking
3, Enable View - Toolbars - Bullets and Numbering
4, Select a paragraph in the editor an move it up/down using the Bullets and Numbering toolbar buttons. This will create a deletion and insertion change.
5, Move the paragraph (which is now marked as inserted text) to the opposite direction, i.e. back to its original place with the using the Bullets and Numbering toolbar buttons.
6, Console shows this error message: 

 soffice.bin: /home/gabor/src/core/sw/source/core/doc/docnum.cxx:2203: bool SwDoc::MoveParagraphImpl(SwPaM&, long int, bool, const SwRootFrame*): Assertion `*aPam.Start() <= *pRedline->Start()' failed.
Comment 1 Aron Budea 2019-08-05 22:21:31 UTC
Confirmed using LO 6.4.0.0.alpha0 (d05b2b91952927ec40d6ea2f482f76c7ccd25ed3) / Windows 7.

Specific substeps for step 5: in a document with 3 paragraphs, position cursor at 2nd, click move up once, move down twice, then move up once more. => assertion failed
Comment 2 László Németh 2021-12-07 15:30:28 UTC
Solved by fixing tdf#145066

*** This bug has been marked as a duplicate of bug 145066 ***