tdf#131253 sw: draw frame text boundary only if show formatting marks
commitf53df0c693d8e73e86ddd986e5b861a0af28e62b
authorJustin Luth <justin.luth@collabora.com>
Mon, 25 Mar 2024 20:01:44 +0000 (25 16:01 -0400)
committerMiklos Vajna <vmiklos@collabora.com>
Tue, 2 Apr 2024 07:08:25 +0000 (2 09:08 +0200)
tree3fbd93a03ef61391f678e166165020b882e7c619
parenta4a5c6b63599bca1f084bb90875f6fd8e15184ac
tdf#131253 sw: draw frame text boundary only if show formatting marks

This squashed backport includes c51f9f15b8c308e62b4839cc13d623fdab0486c2

It is infuriating to see a border around your image
when there is no border defined. View - Text boundaries
does NOT sound like something that would apply to images,
and it is NOT nice to turn that off because then you also
lose the body text markers as well as the header/footer indicators.

Instead, do the same thing as the page boundaries - only show
the (full) boundary when show formatting marks is turned on
(and there are no partial boundaries for frames...)

These text boundaries around AT-anchored flies
only became visible in LO 6.0.

Change-Id: I7954effc46d977e1761cba71758f7a7af2072807
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165294
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165428
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
sw/source/core/layout/paintfrm.cxx