summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-06-20 20:33:50 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-07-20 16:48:18 +0200
commita27fdd7f9aa0fde0385f4c26a74ea17bdfff5642 (patch)
tree2be4762b191382673d9b14df322c22a6f7db7454 /include
parent5cf23f50bdb5e51a2180c33e298b95a0e5154e2a (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 'include')
-rw-r--r--include/sfx2/lokhelper.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sfx2/lokhelper.hxx b/include/sfx2/lokhelper.hxx
index 43c01892e98b..ec68ed6e313a 100644
--- a/include/sfx2/lokhelper.hxx
+++ b/include/sfx2/lokhelper.hxx
@@ -26,7 +26,7 @@ public:
/// Set a view shell as current one.
static void setView(std::uintptr_t nId);
/// Get the currently active view.
- static std::uintptr_t getView(SfxViewShell *pViewShell = nullptr);
+ static std::uintptr_t getView(SfxViewShell* pViewShell = nullptr);
/// Get the number of views of the current object shell.
static std::size_t getViews();
};