summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJustin Luth <justin.luth@collabora.com>2024-03-25 19:20:32 -0400
committerMiklos Vajna <vmiklos@collabora.com>2024-03-26 13:32:49 +0100
commit47af9e64a573684eb42faa097e327e31777a2b58 (patch)
tree03163eff4be27d984070616ac3f38bb0ec14c919 /sw
parent5bf7df62645f73ad69772f318ea3058dfd6fce12 (diff)
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 <jluth@mail.com> Tested-by: Jenkins Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/paintfrm.cxx3
1 files changed, 2 insertions, 1 deletions
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 );