sc/source/ui/view/tabview3.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit f65188894e06db8c2e28e11ad6466a435220b0c4 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sat Jan 29 10:48:16 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sat Jan 29 21:24:30 2022 +0100 cid#1497868 Logically dead code given the surrounding bIsTiledRendering conditional Change-Id: Ic4853f0f840ca2b50937c29f5399b981c5f9bde2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129131 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx index 123c34d93ed7..7e6fec2f93f1 100644 --- a/sc/source/ui/view/tabview3.cxx +++ b/sc/source/ui/view/tabview3.cxx @@ -2391,11 +2391,11 @@ void ScTabView::PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCRO // Remember that wsd expects int and that aEnd.X() is // in pixels and will be converted in twips, before performing // the lok callback, so we need to avoid that an overflow occurs. - aEnd.setX( (!bIsTiledRendering && bLayoutRTL) ? 0 : std::numeric_limits<int>::max() / 1000 ); + aEnd.setX( std::numeric_limits<int>::max() / 1000 ); } else { - aEnd.setX( (!bIsTiledRendering && bLayoutRTL) ? 0 : pGridWin[i]->GetOutputSizePixel().Width() ); + aEnd.setX( bLayoutRTL ? 0 : pGridWin[i]->GetOutputSizePixel().Width() ); } } aEnd.AdjustX( -nLayoutSign );