incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 119652] [From Symphony][Crash]When press "Ctrl+Shift+Backspace" in table cell "A1" ,Undo,crash
Date Tue, 19 Jun 2012 08:58:42 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=119652

yuanlin <yuanlin.ibm@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yuanlin.ibm@gmail.com

--- Comment #2 from yuanlin <yuanlin.ibm@gmail.com> ---
Root cause:
When user press "ctrl+shift+backspace" at the beginning of a table, AOO will
delete the paragraph before the table. It will create a PaM with the Mark in
the first cell of the table and the Point is the text node before the table.
And will call SwEditShell::DeleteSel() to delete the PaM. However, in
SwEditShell::DeleteSel(), the whole PaM will be deleted directly. More node
will be deleted and when do undo it will cause strange error later.

Resolution:
In SwEditShell::DeleteSel(), there is code to delete multi cell selection in a
table. It will split the content according to the cell selection delete them
one by one. The fix can re-use the code that if the PaM is span from inside of
a table to outside of the table, split the PaM as two part, that one part is
the paragraphs before the table, the other part is the content in the
table(could be null in this case). And use the similar logic to delete them.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message