diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-07-15 15:33:39 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-07-16 10:23:07 +0200 |
commit | aeff40f65f421128ab6c07247ac106cded7323a2 (patch) | |
tree | 892c5276984576d9f1ebd214354f9e659e2d65a3 /sw/inc | |
parent | 3145eefc9f1c028b1763ad594f9255c1b51ee761 (diff) |
sw comments on frames: avoid overlay that covers only an at-char image
The comment is already attached to the image via the anchor, and the
overlay would change the image, which is confusing.
(cherry picked from commit 5914fae974875366026bb3b1245ef8bffeadd7d2)
Change-Id: I7a1c2a25182f628effa224fb82b5bcd71fdf35d4
Reviewed-on: https://gerrit.libreoffice.org/75675
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/postithelper.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/inc/postithelper.hxx b/sw/inc/postithelper.hxx index 2a9fb448f7da..84d9674063c0 100644 --- a/sw/inc/postithelper.hxx +++ b/sw/inc/postithelper.hxx @@ -56,6 +56,12 @@ struct SwLayoutInfo std::size_t mRedlineAuthor; + /** + * If true, the overlay arrow points to the comment anchor, otherwise it points to the commented + * frame. + */ + bool mPositionFromCommentAnchor; + SwLayoutInfo() : mpAnchorFrame(nullptr) , mPosition() @@ -66,6 +72,7 @@ struct SwLayoutInfo , mnPageNumber(1) , meSidebarPosition(sw::sidebarwindows::SidebarPosition::NONE) , mRedlineAuthor(0) + , mPositionFromCommentAnchor(true) {} }; |