tdf#131253 sw: draw frame text boundary on when show formatting marks
commit5bf7df62645f73ad69772f318ea3058dfd6fce12
authorJustin Luth <justin.luth@collabora.com>
Mon, 25 Mar 2024 20:01:44 +0000 (25 16:01 -0400)
committerMiklos Vajna <vmiklos@collabora.com>
Tue, 26 Mar 2024 12:29:13 +0000 (26 13:29 +0100)
tree1e63850730d5b3b0b3fcbd1dce2aa6819cc393f7
parentc58b2070f1653454e9e6e4821f9688b3d623039e
tdf#131253 sw: draw frame text boundary on when show formatting marks

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...)

I tried to write a GDIMetaFile unit test,
but the dumps were identical - failing to capture this screen artifact.

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>
sw/source/core/layout/paintfrm.cxx