[Libreoffice-commits] core.git: sw/source

Ashod Nakashian ashod.nakashian at collabora.co.uk
Sat May 28 20:46:02 UTC 2016


 sw/source/uibase/docvw/SidebarWin.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit a5302d565f59e5017d283d7ab767fee7f2bae11e
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Sat May 14 20:09:26 2016 -0400

    LOK: invalidate annotation window upon showing
    
    Change-Id: Ib2624c55759c8ac81986bf3b516fd17cbde19ec9
    Reviewed-on: https://gerrit.libreoffice.org/25014
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>
    (cherry picked from commit 4523f78312bd07449fa205301d99a81ef0f69420)
    Reviewed-on: https://gerrit.libreoffice.org/25425
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
index 428303d..d495b2e 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()


More information about the Libreoffice-commits mailing list