sc/source/ui/app/inputhdl.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit e33b5cc2438429889514e0de5d3791d867549fd4 Author: Jaume Pujantell Traserra <jaume.pujant...@collabora.com> AuthorDate: Fri Jun 16 09:01:27 2023 +0200 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Mon Jun 19 20:07:33 2023 +0200
fix crash on LOKIT spelling dialog Update active view before trying to access it's selection. Change-Id: Ic83d335216304f7122005e447f5bd1c1484d0eb2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153137 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index 1ea255f23207..66eb92dd2efa 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -4269,6 +4269,7 @@ void ScInputHandler::NotifyChange( const ScInputHdlState* pState, if (comphelper::LibreOfficeKit::isActive() && pActiveViewSh) { + UpdateActiveView(); EditView* pActiveView = pTopView ? pTopView : pTableView; ESelection aSel = pActiveView ? pActiveView->GetSelection() : ESelection();