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

New commits:
commit 0b1fb051d1bcbfc9f08f288193cff8b039558afd
Author:     Tamás Zolnai <[email protected]>
AuthorDate: Wed Dec 30 12:07:10 2020 +0100
Commit:     Tamás Zolnai <[email protected]>
CommitDate: Wed Dec 30 14:41:03 2020 +0100

    lok: send uno command state update to the right view.
    
    We get the correct view as a parameter(pViewFrame).
    
    Change-Id: I36e99a7660fee69c6c7cb10977763b1136eb6e22
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108511
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Tamás Zolnai <[email protected]>

diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index c31064988113..8ccf6c71ad11 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1324,7 +1324,7 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, 
SfxViewFrame* pViewFra
     else
     {
         // Try to send JSON state version
-        SfxLokHelper::sendUnoStatus(SfxViewShell::Current(), pState);
+        SfxLokHelper::sendUnoStatus(pViewFrame->GetViewShell(), pState);
 
         return;
     }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to