sw/source/uibase/docvw/SidebarTxtControl.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 06c54eabd692849b2da923f54a97e1ccdfa2ac30 Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> Date: Sat May 14 20:12:11 2016 -0400 LOK: ensure KeyInput is handled with the correct MapMode The MapMode is set explicitly to make sure the coordinates of the comment widget is in absolute terms. However PostItMgr::MakeVisible invalidates it. This is to ensure that the MapMode is restored after MakeVisible is called when LOK is active. Change-Id: I2adf749488e6eb46d29a0b29c4dfd644606c92ab Reviewed-on: https://gerrit.libreoffice.org/25015 Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> (cherry picked from commit 0b223bac012fae1af2d2bf1fe9c038cbe88846ed) Reviewed-on: https://gerrit.libreoffice.org/25426 Tested-by: Jenkins <c...@libreoffice.org> diff --git a/sw/source/uibase/docvw/SidebarTxtControl.cxx b/sw/source/uibase/docvw/SidebarTxtControl.cxx index c997b4a..4ffe031 100644 --- a/sw/source/uibase/docvw/SidebarTxtControl.cxx +++ b/sw/source/uibase/docvw/SidebarTxtControl.cxx @@ -49,6 +49,7 @@ #include <editeng/editview.hxx> #include <editeng/flditem.hxx> #include <LibreOfficeKit/LibreOfficeKitEnums.h> +#include <comphelper/lok.hxx> #include <uitool.hxx> #include <view.hxx> @@ -249,8 +250,12 @@ void SidebarTextControl::KeyInput( const KeyEvent& rKeyEvt ) } else { + // MakeVisible can lose our MapMode, save it. + auto oldMapMode = GetMapMode(); //let's make sure we see our note mrPostItMgr.MakeVisible(&mrSidebarWin); + if (comphelper::LibreOfficeKit::isActive()) + SetMapMode(oldMapMode); long aOldHeight = mrSidebarWin.GetPostItTextHeight(); bool bDone = false; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits