Issue 5001 - Manually changing index/table leads to situations where OO crashes
Summary: Manually changing index/table leads to situations where OO crashes
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Unknown
QA Contact: issues@sw
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2002-05-17 22:29 UTC by Unknown
Modified: 2003-09-08 16:56 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
PNG screenshot of attempt to add text below table of contents (17.02 KB, image/png)
2002-07-12 05:01 UTC, prgmgr
no flags Details
PNG screenshot of table of contents before any manual editing. (15.80 KB, image/png)
2002-07-12 05:02 UTC, prgmgr
no flags Details
PNG screenshot of deleting enough text in the TOC so that text below is moved into TOC. (15.71 KB, image/png)
2002-07-12 05:02 UTC, prgmgr
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-05-17 22:29:22 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.
Comment 1 prgmgr 2002-07-11 21:31:39 UTC
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.
Comment 2 prgmgr 2002-07-12 05:01:28 UTC
Created attachment 2194 [details]
PNG screenshot of attempt to add text below table of contents
Comment 3 prgmgr 2002-07-12 05:02:05 UTC
Created attachment 2195 [details]
PNG screenshot of table of contents before any manual editing.
Comment 4 prgmgr 2002-07-12 05:02:56 UTC
Created attachment 2196 [details]
PNG screenshot of deleting enough text in the TOC so that text below is moved into TOC.
Comment 5 prgmgr 2002-07-12 05:05:00 UTC
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.
Comment 6 stefan.baltzer 2002-12-10 14:50:50 UTC
Reassigned to Éric.
Comment 7 eric.savary 2002-12-11 12:13:13 UTC
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.
Comment 8 eric.savary 2002-12-11 12:13:54 UTC
reflagged
Comment 9 eric.savary 2002-12-11 12:14:10 UTC
closed
Comment 10 Unknown 2003-02-09 12:24:21 UTC
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.