diff options
author | Tor Lillqvist <tml@collabora.com> | 2020-06-24 22:16:52 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2020-06-24 21:42:54 +0200 |
commit | a84cb21d5bd0a3e2a640f7e9e3b1e4a418f9a2e1 (patch) | |
tree | 062491e538c461ba1bf2df22b4c2dd805482bc01 /sfx2 | |
parent | 6d4c23cc34d0a1db5e2ea743ea8d7e4ef6049420 (diff) |
tdf#128502: Try to fix UnitCalc after 984bd2d5e4e1277cab47f8c1053bdf9369b23935
The logic in SfxLokHelper::notifyOtherViews() apparently needs to be a
bit more lenient in selecting which views are relevant.
Change-Id: I34b24fcb684f155b189c4e89100da3ee6bf6326a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97079
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/lokhelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index 0226cb09060d..1bdb9c9898ea 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -308,7 +308,7 @@ void SfxLokHelper::notifyOtherViews(SfxViewShell* pThisView, int nType, const OS SfxViewShell* pViewShell = SfxViewShell::GetFirst(); while (pViewShell) { - if (pViewShell != pThisView && pViewShell->GetDocId() == pThisView-> GetDocId()) + if (pViewShell != pThisView && (pThisView->GetDocId() == ViewShellDocId(-1) || pViewShell->GetDocId() == pThisView->GetDocId())) notifyOtherView(pThisView, pViewShell, nType, rKey, rPayload); pViewShell = SfxViewShell::GetNext(*pViewShell); |