sw/source/core/layout/paintfrm.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit ea1d0a62d9b9790c235044a754604166ec5df6d4 Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Fri Nov 22 14:40:50 2024 +0100 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Fri Nov 22 17:06:40 2024 +0100 sw: do not paint hidden frames' borders SwFrame::PaintSwFrameShadowAndBorder() is called by upper's SwFrame::PaintSwFrameBackground() so it needs another check. (regression from commit ff7f1b59e22092d8548459e75fe912db852f056f) Change-Id: Ic7ac28e4af8e0abf4970d87edb40a79ad4d25156 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177032 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 5e1bb1392638..1120879e707a 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -5532,6 +5532,11 @@ void SwFrame::PaintSwFrameShadowAndBorder( return; } + if (!getFramePrintArea().HasArea()) + { // hidden text frame, may be called by upper from PaintSwFrameBackground() + return; + } + const bool bLine = rAttrs.IsLine(); const bool bShadow = rAttrs.GetShadow().GetLocation() != SvxShadowLocation::NONE;