Issue 103733 - Compare document between empty document and a docment with notes and changing record, crash OOo
Summary: Compare document between empty document and a docment with notes and changing...
Status: CLOSED DUPLICATE of issue 73682
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: DEV300m52
Hardware: All All
: P2 Trivial (vote)
Target Milestone: ---
QA Contact: issues@sw
Keywords: oooqa
Depends on:
Blocks: 84292
  Show dependency tree
Reported: 2009-07-23 06:55 UTC by amy2008
Modified: 2013-08-07 14:44 UTC (History)
4 users (show)

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

Document to reproduce (8.46 KB, application/vnd.oasis.opendocument.text)
2009-07-23 11:55 UTC, michael.ruess
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description amy2008 2009-07-23 06:55:58 UTC
Can reproduce it in DEV300m52 on WinXP and Fedora

How to reproduce it
1 Open a new Writer doc, enter nothing in this file, save it as first.odt
2 Open another new Writer doc, Ctrl+Enter to new a page
3 Insert - Note to insert notes in these two pages respectively
4 Set cursor on the second page, Edit - Changes - Record, enter some characters,
  Edit - Changes - Accept or Reject, Accept or Reject Changes dialog opens, 
  click "Accept all" button
5 Edit - Compare document, "Insert" dialog opens, select the document first.odt
  which you just saved it at step 1, Accept or Reject Changes dialog opens,
  click "Reject all" button

OOo crashes

OOo works well

Li Meiying
Comment 1 amy2008 2009-07-23 07:01:19 UTC
Can reproduce it in OOo2.4.1, old issue
Comment 2 michael.ruess 2009-07-23 11:55:55 UTC
Created attachment 63697 [details]
Document to reproduce
Comment 3 michael.ruess 2009-07-23 11:57:36 UTC
MRU->MST: easier to reproduce with the attached document. Just open it, compare
against an empty saved one via "Edit.Compare documents", then "Reject all" -> crash
Comment 4 2009-11-04 15:24:07 UTC
a bit of debugging reveals that we crash in SwPageFrm::Cut, because the very
last page of the document is being deleted.
this unfortunate deletion due to the fact that the nodes array of the document
is empty, i.e., it does not contain a single text node in the body.
the text nodes were all removed by rejecting the redlines.

thus, this issue is a duplicate of i73682.

*** This issue has been marked as a duplicate of 73682 ***
Comment 5 2009-11-04 15:25:16 UTC
close duplicate