summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2020-12-28 20:07:43 -0900
committerJim Raykowski <raykowj@gmail.com>2021-01-10 04:12:57 +0100
commit94e47e2d90096146f4cd909782d75375d286bed1 (patch)
treea2d7db65e953d1c67f4c4185a08da9371c9548f4 /sw
parent4bbbd836720b2961d0ca28ea32827a5e21977c23 (diff)
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@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/docvw/AnnotationWin2.cxx4
1 files changed, 4 insertions, 0 deletions
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());
}