sw/source/core/view/viewimp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 0372da98bf9b2af82afc2e4ff919068bdcaae7db Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Tue Jun 7 12:21:28 2022 +0200 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Tue Jun 7 13:56:17 2022 +0200 fix SwViewShellImp::AddPaintRect() rectangle compression (tdf#148255) Both the checks test whether a follow-up rectangle can be merged with the previous one by merging it at the bottom or the right of it, so the previous one should be always the top-left and the follow-up one should be the bottom-right. Change-Id: Ie5809595ec9bf28bd169fc503a6b391c6188d0b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135468 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lu...@collabora.com> diff --git a/sw/source/core/view/viewimp.cxx b/sw/source/core/view/viewimp.cxx index d9f2c63267ad..3b216a09b443 100644 --- a/sw/source/core/view/viewimp.cxx +++ b/sw/source/core/view/viewimp.cxx @@ -147,7 +147,7 @@ bool SwViewShellImp::AddPaintRect( const SwRect &rRect ) if(last2.Top() == last.Top() && last2.Height() == last.Height() && last2.Right() + 1 >= last.Left() && last2.Right() <= last2.Right()) { - last2 = SwRect( last.TopLeft(), rRect.BottomRight()); + last2 = SwRect( last2.TopLeft(), last.BottomRight()); m_pPaintRegion->pop_back(); return true; }