Issue 108813

Summary: Crash on two times Undo inserting comment with text
Product: Writer Reporter: lutz.hoeger
Component: editingAssignee: Oliver-Rainer Wittmann <orw>
Status: CLOSED FIXED QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P2 CC: issues, jbf.faure, max.odendahl, mdxonefour,, os_ooo
Version: OOO320m10Keywords: crash, regression
Target Milestone: ---   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 99999    
Description Flags
patch to fix the crash none

Description lutz.hoeger 2010-02-01 10:41:59 UTC
- Start a new text document
- Insert comment
- type one character into comment
- undo 2x -> crash
Comment 1 lutz.hoeger 2010-02-01 10:43:25 UTC
set version to OOO320m10
Comment 2 lutz.hoeger 2010-02-01 10:48:45 UTC
Adding one detail: any open and unsaved document cannot be restored, i.e. will
be restored empty only.
Comment 3 michael.ruess 2010-02-01 12:43:00 UTC
MRU->OD: please take over at first. You just need to insert a comment and enter
a character, then two times Undo -> crash.
Comment 4 jbf.faure 2010-02-01 13:08:36 UTC
Same crash with Dev300m70 under Ubuntu 8.04.

Regards. JBF
Comment 5 Oliver-Rainer Wittmann 2010-02-01 13:16:31 UTC
Investigation on Windows reveals that the crash occurs since DEV300m57 - prior
versions work fine.
Comment 6 Oliver-Rainer Wittmann 2010-02-01 13:50:36 UTC
fix in progress
Comment 7 Oliver-Rainer Wittmann 2010-02-01 14:05:37 UTC
Created attachment 67503 [details]
patch to fix the crash
Comment 8 Oliver-Rainer Wittmann 2010-02-01 14:08:55 UTC
defect cause:
During undo of insert of the comment and undo action for the change of the
comment text is created. This causes the Writer to crash, because no actions are
allowed to be created during performing an undo.

see attached patch.
Comment 9 wope 2010-02-03 21:58:27 UTC
Comment 10 wope 2010-02-03 22:00:11 UTC
ok in OOO320m12