diff options
Diffstat (limited to 'sw/source/core')
-rw-r--r-- | sw/source/core/edit/eddel.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/core/edit/eddel.cxx b/sw/source/core/edit/eddel.cxx index 3f5fe7cf7a13..c751a36c6fbc 100644 --- a/sw/source/core/edit/eddel.cxx +++ b/sw/source/core/edit/eddel.cxx @@ -89,9 +89,14 @@ void SwEditShell::DeleteSel( SwPaM& rPam, sal_Bool* pUndo ) } else { + SwPaM aPam(rPam); + if (bSelectAll) + // Selection starts at the first para of the first cell, but we + // want to delete the table node before the first cell as well. + aPam.Start()->nNode = aPam.Start()->nNode.GetNode().FindTableNode()->GetIndex(); // delete everything - GetDoc()->DeleteAndJoin( rPam ); - SaveTblBoxCntnt( rPam.GetPoint() ); + GetDoc()->DeleteAndJoin( aPam ); + SaveTblBoxCntnt( aPam.GetPoint() ); } // Selection is not needed anymore |