From 2c23c6fc1f64627ee47c428f3bc1e99162cd864d Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 10 Oct 2013 23:23:55 -0400 Subject: Spell check context can be NULL (when the live spell check is not on). Change-Id: I785f83b5c2c6329b7a18af9f9721c06894207ea5 --- sc/source/ui/view/gridwin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 9ef435925b71..d4d88e434556 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -2979,7 +2979,7 @@ void ScGridWindow::Command( const CommandEvent& rCEvt ) sal_Bool bDone = false; sal_Bool bEdit = pViewData->HasEditView(eWhich); - bool bSpellError = mpSpellCheckCxt->isMisspelled(nCellX, nCellY); + bool bSpellError = (mpSpellCheckCxt && mpSpellCheckCxt->isMisspelled(nCellX, nCellY)); if ( !bEdit ) { -- cgit v1.2.3