sfx2/source/view/lokhelper.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a84cb21d5bd0a3e2a640f7e9e3b1e4a418f9a2e1
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Wed Jun 24 22:16:52 2020 +0300
Commit:     Tor Lillqvist <t...@collabora.com>
CommitDate: Wed Jun 24 21:42:54 2020 +0200

    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 <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Tor Lillqvist <t...@collabora.com>

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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to