diff options
Diffstat (limited to 'sw/source/core/frmedt/fetab.cxx')
-rw-r--r-- | sw/source/core/frmedt/fetab.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/core/frmedt/fetab.cxx b/sw/source/core/frmedt/fetab.cxx index 56a8d75fffb5..593d1f28cce6 100644 --- a/sw/source/core/frmedt/fetab.cxx +++ b/sw/source/core/frmedt/fetab.cxx @@ -204,6 +204,14 @@ bool SwFEShell::InsertRow( sal_uInt16 nCnt, bool bBehind ) // search boxes via the layout SwSelBoxes aBoxes; + bool bSelectAll = StartsWithTable() && ExtendedSelectedAll(/*bFootnotes=*/false); + if (bSelectAll) + { + SwPaM* pPaM = getShellCrsr(false); + SwNode* pNode = pPaM->Start()->nNode.GetNode().FindTableNode()->EndOfSectionNode(); + pPaM->End()->nNode = pNode->GetIndex() - 2; + pPaM->End()->nContent.Assign(pPaM->End()->nNode.GetNode().GetCntntNode(), 0); + } GetTblSel( *this, aBoxes, nsSwTblSearchType::TBLSEARCH_ROW ); TblWait( nCnt, pFrm, *GetDoc()->GetDocShell(), aBoxes.size() ); |