diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-06-20 20:33:50 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-07-20 16:48:18 +0200 |
commit | a27fdd7f9aa0fde0385f4c26a74ea17bdfff5642 (patch) | |
tree | 2be4762b191382673d9b14df322c22a6f7db7454 /sfx2/source/view/viewsh.cxx | |
parent | 5cf23f50bdb5e51a2180c33e298b95a0e5154e2a (diff) |
sfx2 lok: fix missing view cursors in a new view
When a new view was created, the old views got the position of the new
view, but not the other way around.
Make sure that the old views notify the new one right after registering
the callback.
Reviewed-on: https://gerrit.libreoffice.org/26523
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit 4d211384f048b689f20e46d4d586f342b110cb5c)
Conflicts:
sfx2/source/view/viewsh.cxx
Change-Id: If26edbd57aa939e453d95f4907a0e5722329dd65
Diffstat (limited to 'sfx2/source/view/viewsh.cxx')
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index 7d45430e5367..dea40535534a 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -1602,6 +1602,15 @@ void SfxViewShell::registerLibreOfficeKitViewCallback(LibreOfficeKitCallback pCa { pImp->m_pLibreOfficeKitViewCallback = pCallback; pImp->m_pLibreOfficeKitViewData = pData; + + // Ask other views to send their cursor position to the new view. + SfxViewShell* pViewShell = SfxViewShell::GetFirst(); + while (pViewShell) + { + pViewShell->ShowCursor(false); + pViewShell->ShowCursor(); + pViewShell = SfxViewShell::GetNext(*pViewShell); + } } void SfxViewShell::libreOfficeKitViewCallback(int nType, const char* pPayload) const |