sw/source/core/layout/paintfrm.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 47af9e64a573684eb42faa097e327e31777a2b58 Author: Justin Luth <justin.l...@collabora.com> AuthorDate: Mon Mar 25 19:20:32 2024 -0400 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Tue Mar 26 13:32:49 2024 +0100 tdf#129905 tdf#160365 sw: don't always draw text boundary on frames This fixes a 7.6 regression caused by commit 79811c27f34d3e752de1bc3959605c5d58ac2365 tdf#129905 Create toggle for Section boundaries This fixes the toggle for View - Text boundaries, so now images can have their thin gray border removed. This also fixes the toggle for View - Table boundaries. Change-Id: Idb75debf173d64b14a6864c61b4524e46898975f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165297 Reviewed-by: Justin Luth <jl...@mail.com> Tested-by: Jenkins Reviewed-by: Rafael Lima <rafael.palma.l...@gmail.com> Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 9a0776631f01..6903e80b1f46 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -7004,7 +7004,8 @@ void SwPageFrame::RefreshSubsidiary( const SwRect &rRect ) const void SwLayoutFrame::RefreshLaySubsidiary( const SwPageFrame *pPage, const SwRect &rRect ) const { - const bool bSubsOpt = isSubsidiaryLinesEnabled() || isSubsidiaryLinesForSectionsEnabled(); + const bool bSubsOpt + = isSubsidiaryLinesEnabled() || (IsSctFrame() && isSubsidiaryLinesForSectionsEnabled()); if ( bSubsOpt ) PaintSubsidiaryLines( pPage, rRect );