[Libreoffice-commits] core.git: sfx2/source

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Fri Jan 1 15:04:43 UTC 2021


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

New commits:
commit ef1d69949c3e9108a7f3857bdf22e11820eff79a
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Wed Dec 30 12:07:10 2020 +0100
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Fri Jan 1 16:03:58 2021 +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 <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108557
    Tested-by: Jenkins

diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 49b2486cd8cd..9c78b4c693ce 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1325,7 +1325,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;
     }


More information about the Libreoffice-commits mailing list