summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-10-10 23:23:55 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-10-11 12:14:27 -0400
commit2c23c6fc1f64627ee47c428f3bc1e99162cd864d (patch)
tree21ea3e69267e8796ea5dacb28b2f4e4b4c03f9ba /sc
parentb3e35aa551fa8abc0215a0ef416fc9acbbc3c0d9 (diff)
Spell check context can be NULL (when the live spell check is not on).
Change-Id: I785f83b5c2c6329b7a18af9f9721c06894207ea5
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/gridwin.cxx2
1 files changed, 1 insertions, 1 deletions
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 )
{