diff options
Diffstat (limited to 'sw/source/ui/wrtsh/select.cxx')
-rw-r--r-- | sw/source/ui/wrtsh/select.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/ui/wrtsh/select.cxx b/sw/source/ui/wrtsh/select.cxx index 4ad3f6a6e6c8..149d2993f098 100644 --- a/sw/source/ui/wrtsh/select.cxx +++ b/sw/source/ui/wrtsh/select.cxx @@ -160,7 +160,8 @@ long SwWrtShell::SelAll() SttSelect(); GoEnd(sal_True, &bMoveTable); - if (StartsWithTable()) + bool bStartsWithTable = StartsWithTable(); + if (bStartsWithTable) ExtendedSelectAll(); if( pStartPos ) @@ -173,9 +174,9 @@ long SwWrtShell::SelAll() // if the last selection was behind the first section or // if the last selection was already the first section // In this both cases we select to the end of document - if( *pTmpCrsr->GetPoint() < *pEndPos || + if( ( *pTmpCrsr->GetPoint() < *pEndPos || ( *pStartPos == *pTmpCrsr->GetMark() && - *pEndPos == *pTmpCrsr->GetPoint() ) ) + *pEndPos == *pTmpCrsr->GetPoint() ) ) && !bStartsWithTable) SwCrsrShell::SttEndDoc(sal_False); } delete pStartPos; |