From a693fedcea3c4b3487c27ef6281c264d789a7c8c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 13 Feb 2014 09:56:02 +0200 Subject: [PATCH] cid#705020 dereference after null check Change-Id: I11a208ef1648186c40249c27168fffd6a3419eff --- sw/source/ui/ribbar/inputwin.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sw/source/ui/ribbar/inputwin.cxx b/sw/source/ui/ribbar/inputwin.cxx index 8112b55a95cd..16f8ac5e565f 100644 --- a/sw/source/ui/ribbar/inputwin.cxx +++ b/sw/source/ui/ribbar/inputwin.cxx @@ -400,8 +400,9 @@ void SwInputWindow::CancelFormula() pWrtShell->EndSelTblCells(); pView->GetEditWin().GrabFocus(); + + pView->GetViewFrame()->GetDispatcher()->Execute( FN_EDIT_FORMULA, SFX_CALLMODE_ASYNCHRON); } - pView->GetViewFrame()->GetDispatcher()->Execute( FN_EDIT_FORMULA, SFX_CALLMODE_ASYNCHRON); } const sal_Unicode CH_LRE = 0x202a;