[Libreoffice-commits] core.git: sw/source
Jim Raykowski (via logerrit)
logerrit at kemper.freedesktop.org
Sun Jan 10 03:13:37 UTC 2021
sw/source/uibase/docvw/AnnotationWin2.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 94e47e2d90096146f4cd909782d75375d286bed1
Author: Jim Raykowski <raykowj at gmail.com>
AuthorDate: Mon Dec 28 20:07:43 2020 -0900
Commit: Jim Raykowski <raykowj at gmail.com>
CommitDate: Sun Jan 10 04:12:57 2021 +0100
Set visibility of text range overlay the same as the annotation window
When frames containing comment anchors are removed the annotation window
is hid but the text range overlay belonging to the annotation window
remains visible in the edit window. This patch sets the visibility of
text range overlay of the annotation window to the same visibility as
the annotation window.
Change-Id: I82170b2cab248a2c852a347ebdc6901bed3c83f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108428
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj at gmail.com>
diff --git a/sw/source/uibase/docvw/AnnotationWin2.cxx b/sw/source/uibase/docvw/AnnotationWin2.cxx
index 99c69edf0059..3fe30564cc44 100644
--- a/sw/source/uibase/docvw/AnnotationWin2.cxx
+++ b/sw/source/uibase/docvw/AnnotationWin2.cxx
@@ -1163,6 +1163,8 @@ void SwAnnotationWin::ShowNote()
mpShadow->setVisible(true);
if (mpAnchor && !mpAnchor->isVisible())
mpAnchor->setVisible(true);
+ if (mpTextRangeOverlay && !mpTextRangeOverlay->isVisible())
+ mpTextRangeOverlay->setVisible(true);
// Invalidate.
InvalidateControl();
@@ -1182,6 +1184,8 @@ void SwAnnotationWin::HideNote()
}
if (mpShadow && mpShadow->isVisible())
mpShadow->setVisible(false);
+ if (mpTextRangeOverlay && mpTextRangeOverlay->isVisible())
+ mpTextRangeOverlay->setVisible(false);
collectUIInformation("HIDE",get_id());
}
More information about the Libreoffice-commits
mailing list