summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-04-04 10:51:10 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2024-04-04 13:11:08 +0200
commitd33a43a76c3ad6d38f7c2dca0ff5386ee5264bce (patch)
treef3713cd87e7d1bf35c6b60a07b6594c3b9250d73 /sw/source
parent57f02bb1015e7fc811b57ed618eefd54b9465426 (diff)
Drop one redundant check
Change-Id: I0ae90e10fad2d6e41d855ead69b8cdcf8d53f525 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165719 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/layout/trvlfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx
index aa1a255fc421..07801bf93164 100644
--- a/sw/source/core/layout/trvlfrm.cxx
+++ b/sw/source/core/layout/trvlfrm.cxx
@@ -1205,7 +1205,7 @@ const SwContentFrame *SwLayoutFrame::GetContentPos( Point& rPoint,
if ( !pContent && (GetPrev() && !bDontLeave) )
pContent = ContainsContent();
- if ( bBodyOnly && pContent && !pContent->IsInDocBody() )
+ if ( bBodyOnly )
while ( pContent && !pContent->IsInDocBody() )
pContent = pContent->GetNextContentFrame();