diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-05-20 10:49:14 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-05-20 11:50:42 +0200 |
commit | 825673eac77e2ccef29cfe2d9a1f375c6f5606d7 (patch) | |
tree | 7f93ac49a8f29afb150d7f0ce99545c0987767be /editeng | |
parent | a25385e0d8027d7257ab95a4b787404dfca59913 (diff) |
This check is redundant here
The check immediately above this guarantees that
!rParaPortion.IsInvalid() may only be true when
rParaPortion.MustRepaint() is true.
Change-Id: Icedeac87b3b8125997640d330b9612eed2cb5095
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115834
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 454f65286416..9576d079574f 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -383,8 +383,7 @@ void ImpEditEngine::FormatDoc() if ( rParaPortion.MustRepaint() || ( rParaPortion.IsInvalid() && rParaPortion.IsVisible() ) ) { // No formatting should be necessary for MustRepaint()! - if ( ( rParaPortion.MustRepaint() && !rParaPortion.IsInvalid() ) - || CreateLines( nPara, nY ) ) + if ( !rParaPortion.IsInvalid() || CreateLines( nPara, nY ) ) { if ( !bGrow && GetTextRanger() ) { |