Apache OpenOffice (AOO) Bugzilla – Issue 35363
Undo text editing let crash office
Last modified: 2004-11-05 07:37:11 UTC
Create a new draw (Menu->New->Draw), insert some text and press C-z (undo) more than once, crash report will open and ask for sending... Broken = Yes, because it works in SO7.
Michael, you asked for xml only issues. This one happens because on export the style name for transparency gradients gets encoded as it is a XML_TYPE_STYLENAME type. The transparent gradient itself is correctly loaded and its encoded name with display name is added AddStyleDisplayName() to the importer. But the attribute at the property style is directly set at the API. It should be decoded with GetStyleDisplayName() first, but I'm not sure when this should happen. Also it looks like you added the MID_FLAG_NO_PROPERTY_IMPORT to this and other properties. Why is that? Please take over.
Sorry, wrong issue. Please all ignore my last comment
The crash happens only if a text shape is used. - Create text shape - add text now without leaving the text edit mode, press ctrl+z twice. The first undo action also deletes the text object, the second undo action crash because it still used the deleted SdrObject. Armin, please have a look a this, I'm not sure what changed in text and undo handling in svx that caused this behaviour.
AW: Nothing has changed in SVX undo handling. But what happens is: The Undo of the Insert Text Frame removes the object and does a ModelChange. The ModelChange triggers a EndTextEdit, which itself adds an UNDO action for text edit. The 2nd undo then undoes a text edit on a deleted text object. I compared with SRC645 (SO7) and there, when the EditEngine is active, the Undo-Stack of the EditEngine is there, so tehre is no Undo action for instert text frame, but only for text editing. So it seems more that for some reason the own Undo-Stack for text editing is no longer used ?!? Investigating...
AW: investigation with Framework team shows that setting the UndoStack using the code in View::BegTextEdit and View::EndTextEdit in sd is just luck. Checking with AF shows that the shell hierarchy has changed in his current version, avoiding this crash. So i will send this onew to AF as double (and fixed, then) and write another one concerning changing both mentioned methods and to call a EndTextEdit when the shell containing the OutlinerView loses the focus.
AW->AF: This one is double to a fixed one in Your CWS. There is a follow-up task (#i36150#) created for remaining issues.
Fixed by issue 32921: the shells were pushed in the wrong order onto the shell stack. *** This issue has been marked as a duplicate of 32921 ***
Closed.