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.stahl@allotropia.de>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user