sw/source/uibase/shells/textfld.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 5692a58cbfbd5da33b37415383f6eafb80d79177 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sat Apr 15 20:44:48 2023 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Apr 17 10:03:47 2023 +0200 tdf#137542 don't crash at least doesn't address the underlying issue though Change-Id: I7f5a5dba01c399ec78eceaab6ea85fc0b8897927 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150446 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/uibase/shells/textfld.cxx b/sw/source/uibase/shells/textfld.cxx index e94b230a8f9d..caf5575f7031 100644 --- a/sw/source/uibase/shells/textfld.cxx +++ b/sw/source/uibase/shells/textfld.cxx @@ -188,9 +188,9 @@ void SwTextShell::ExecField(SfxRequest &rReq) SwCursorShell::StartOfInputFieldAtPos( *(rSh.GetCursor()->Start()) ) + 1, SwCursorShell::EndOfInputFieldAtPos( *(rSh.GetCursor()->Start()) ) - 1 ); } - else + else if (SwField* pCurrentField = rSh.GetCurField(true)) { - rSh.StartInputFieldDlg(rSh.GetCurField(true), false, false, GetView().GetFrameWeld()); + rSh.StartInputFieldDlg(pCurrentField, false, false, GetView().GetFrameWeld()); } bRet = true; }