sw/source/core/layout/paintfrm.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 09b3dd1cb0c1741cf3560fc9faf2aec696d5c9a2 Author: Justin Luth <justin.l...@collabora.com> AuthorDate: Mon Mar 25 19:20:32 2024 -0400 Commit: Rafael Lima <rafael.palma.l...@gmail.com> CommitDate: Tue Mar 26 17:08:05 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> (cherry picked from commit 47af9e64a573684eb42faa097e327e31777a2b58) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165311 diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 0f048c4e805d..5472695e9732 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -7012,7 +7012,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 );