From c51f9f15b8c308e62b4839cc13d623fdab0486c2 Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Wed, 27 Mar 2024 09:50:36 -0400 Subject: tdf#131253 sw: draw frame text boundary if fly has textframe While the text boundary on a wrap-through frame will not need text boundary markers for the external text, it does have relevance for the internal text. Change-Id: Ica91dc42333a69cfecd10a72a1188d77d1dd4ed7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165395 Tested-by: Jenkins Reviewed-by: Justin Luth --- sw/source/core/layout/paintfrm.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sw/source') 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)) { -- cgit