Bug 71875

Summary: FORMATTING: Visual C++ error on updating toc index with outline numbering
Product: LibreOffice Reporter: pierre-yves samyn <pierre-yves.samyn>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: medium    
Version: 4.2.0.0.alpha1   
Hardware: Other   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Screenshot Error OutlineNumberInIndex.png
TOC_OutlineNumbering.odt
TOC.odt (no outline numbering)

Description pierre-yves samyn 2013-11-21 13:40:14 UTC
Created attachment 89587 [details]
Screenshot Error OutlineNumberInIndex.png

Hello

Platform: windows 7/64 & Version: 4.2.0.0.alpha1+
Build ID: 6788b92e15889beb151baf2b8ca8719f6ea38481
TinderBox: Win-x86@39, Branch:master, Time: 2013-11-21_02:40:15

Description: Update an index causes a Visual C++ error if an outline numbering has been defined for the headings (see attached screenshot).

Steps to reproduce:

1. Open the TOC_OutlineNumbering.odt attached (text with one paragraph in heading1 style and with a toc)
2. Right click on the index then Update Index/Table

Expected result: index updated
Actual result: Error Assertion failed
Program ndtxt.cxx Line: 1796
Expression: rIdx <= m_Text.getLength()

This problem does not occur with the TOC.odt attached (same text without outline numbering).

Note: the page number disappears after the update but this is another Issue: bug 71866

Regards
Pierre-Yves
Comment 1 pierre-yves samyn 2013-11-21 13:41:35 UTC
Created attachment 89588 [details]
TOC_OutlineNumbering.odt
Comment 2 pierre-yves samyn 2013-11-21 13:42:31 UTC
Created attachment 89589 [details]
TOC.odt (no outline numbering)
Comment 3 Jacques Guilleron 2013-11-23 12:55:07 UTC
Hello Pierre-Yves,

No such error message for me with the two attachments.

LO 4.2.0.0.alpha1+
Build ID: 0adea894d6d55ead0ff58c76ce142f5d4e1014a4
TinderBox: Win-x86@47-TDF, Branch:master, Time: 2013-11-17_03:47:26
Windows 7 Home Premium

Jacques
Comment 4 pierre-yves samyn 2013-11-24 13:30:02 UTC
Hello

(In reply to comment #3)
> Hello Pierre-Yves,
> 
> No such error message for me with the two attachments.
> 
> LO 4.2.0.0.alpha1+
> Build ID: 0adea894d6d55ead0ff58c76ce142f5d4e1014a4
> TinderBox: Win-x86@47-TDF, Branch:master, Time: 2013-11-17_03:47:26
> Windows 7 Home Premium
> 

No more reproducible on Windows 7/6 with Version: 4.2.0.0.beta1
Build ID: f4ca7b35f580827ad2c69ea6d29f7c9b48ebbac7

Thank you
Regards
Pierre-Yves