Apache OpenOffice (AOO) Bugzilla – Issue 5001
Manually changing index/table leads to situations where OO crashes
Last modified: 2003-09-08 16:56:16 UTC
I add an index/table and enable manual changes ("Protected against manual changes") and then use delete-button (delete forward) to edit the index/table. If I delete too much, it deletes all paragraphs which were after the index/table. Now Writer is in a situation where it should not be. I can add nothing after the index/table. If I try to write something, it adds it to the index/table. If I now delete the index/table, OO crashes. My guess: editing an index/table should happen inside it and it should not affect the surrounding parts of document. There should always be an empty paragraph outside the index/table. If there is not, and index/table is removed, OO is in impossible situation because there are no paragraphs and it crashes.
ehk thanks for posting the issue. Interesting issue. Duplicated on Solaris 8, OO 1.0, CDE with latest Solaris and J2SE patches. 1. Create a few pages of text with headers. 2. Create a table of contents in between pages of text. As ehk mentioned, make sure "Protected against manual changes" is DISABLED. 3. Use the delete button to remove text. Notice how text after the table contents appears to be included inside the table of contents. 4. As ehk pointed out, you cannot put the text cursor outside the table of contents area ( the shaded area ). However, when I removed the table of contents, OO did not crash. I'll post screenshots later.
Created attachment 2194 [details] PNG screenshot of attempt to add text below table of contents
Created attachment 2195 [details] PNG screenshot of table of contents before any manual editing.
Created attachment 2196 [details] PNG screenshot of deleting enough text in the TOC so that text below is moved into TOC.
addtext.png -> Tries to show how it is impossible to add text below the table of contents. before.png -> The table of contents. delete.png -> Notice how the text below the table of contents is now part of the table of contents if you delete ( using the delete key ) all the content past the cursor.
Reassigned to Éric.
A TOC, in Writer, is nothing more than some text in a section. It means that this text is part of the document text flow. So, if you delete some text in the TOC, the text placed below the TOC will als move/be deleted. If you come to the situation that no text exists after the TOC and you'd like to set the cursor after the TOC, press Alt+Enter. I couldn't reproduce the crash you mentioned. Please check if you can still reproduce it in a current build. If yes, please attach sample file, reopen the this issue and reassign it to me.
reflagged
closed
In 1.0.2 (Debian unstable) it does not crash anymore. Not being able to go outside toc is still annoying if you don't know the trick, but it wasn't my issue here.