summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/paintfrm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/layout/paintfrm.cxx')
-rw-r--r--sw/source/core/layout/paintfrm.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 6903e80b1f46..8479436a88c8 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -7491,8 +7491,10 @@ void SwLayoutFrame::PaintSubsidiaryLines( const SwPageFrame *pPage,
return;
// if the frame is wrap none or wrap through, then text boundary lines have no meaning
+ // (unless the frame itself contains text)
const text::WrapTextMode aSurround = GetFormat()->GetSurround().GetSurround();
if (GetFormat()->GetAnchor().GetAnchorId() != RndStdIds::FLY_AS_CHAR
+ && (!Lower() || !Lower()->IsTextFrame())
&& (aSurround == text::WrapTextMode::WrapTextMode_THROUGH
|| aSurround == text::WrapTextMode::WrapTextMode_NONE))
{