sw/source/core/crsr/viscrs.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 274ecfa4e27f0d4198c1d351c285d3dfc2cdd075
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Wed Jun 26 10:11:08 2024 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Thu Jun 27 16:29:02 2024 +0200

    sw: simplify SwShellCursor::Show()
    
    If we carefully dereference the shell and its sfx view shell, then no
    need to do this again, as pointed out at
    
<https://gerrit.libreoffice.org/c/core/+/169509/2#message-087d761946aeeb8e6a25ed46dafa10adc5dacc67>.
    
    Change-Id: I4da444d1f4001849c7fe70ac0acd5e8af26b3415
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169636
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx
index 7c30e8f43675..5a67e7192d0d 100644
--- a/sw/source/core/crsr/viscrs.cxx
+++ b/sw/source/core/crsr/viscrs.cxx
@@ -1001,7 +1001,7 @@ void SwShellCursor::Show(SfxViewShell const * pViewShell)
         }
 
         pSfxViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_TEXT_SELECTION, 
sRect);
-        SfxLokHelper::notifyOtherViews(GetShell()->GetSfxViewShell(), 
LOK_CALLBACK_TEXT_VIEW_SELECTION, "selection", sRect);
+        SfxLokHelper::notifyOtherViews(pSfxViewShell, 
LOK_CALLBACK_TEXT_VIEW_SELECTION, "selection", sRect);
     }
 }
 

Reply via email to