diff options
author | Justin Luth <justin.luth@collabora.com> | 2024-03-27 09:50:36 -0400 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2024-03-27 18:49:09 +0100 |
commit | c51f9f15b8c308e62b4839cc13d623fdab0486c2 (patch) | |
tree | 549bb0a3ae67cae94c93e00ed692726bc53e8e49 /sw/source | |
parent | 261999bc552516a7dae0f96895259485e9ac77a2 (diff) |
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 <jluth@mail.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/layout/paintfrm.cxx | 2 |
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)) { |