sw/source/core/layout/paintfrm.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 37f1857fcf6f1befbf33a88e69559ee9700ddd25 Author: Michael Stahl <[email protected]> AuthorDate: Fri Nov 22 14:40:50 2024 +0100 Commit: Michael Stahl <[email protected]> CommitDate: Fri Nov 22 17:07:25 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 <[email protected]> (cherry picked from commit ea1d0a62d9b9790c235044a754604166ec5df6d4) diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 93d2f3a1eaa9..456a0e6cb3d5 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -5039,6 +5039,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;
