summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-05-14 20:09:26 -0400
committerAshod Nakashian <ashnakash@gmail.com>2016-05-28 20:45:36 +0000
commita5302d565f59e5017d283d7ab767fee7f2bae11e (patch)
treed67b7be6e0074c85752d506e566f398ecbc13012 /sw
parent692863ac3880c16c127250e5ba590406298b39ab (diff)
LOK: invalidate annotation window upon showing
Change-Id: Ib2624c55759c8ac81986bf3b516fd17cbde19ec9 Reviewed-on: https://gerrit.libreoffice.org/25014 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com> (cherry picked from commit 4523f78312bd07449fa205301d99a81ef0f69420) Reviewed-on: https://gerrit.libreoffice.org/25425 Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/docvw/SidebarWin.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
index 428303d25b50..d495b2e15f1f 100644
--- a/sw/source/uibase/docvw/SidebarWin.cxx
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
@@ -1212,6 +1212,12 @@ void SwSidebarWin::ShowNote()
mpShadow->setVisible(true);
if (mpAnchor && !mpAnchor->isVisible())
mpAnchor->setVisible(true);
+
+ // Invalidate.
+ mpSidebarTextControl->Push(PushFlags::MAPMODE);
+ lcl_translateTwips(EditWin(), *mpSidebarTextControl, nullptr);
+ mpSidebarTextControl->Invalidate();
+ mpSidebarTextControl->Pop();
}
void SwSidebarWin::HideNote()