summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoros <os@openoffice.org>2010-07-19 17:40:41 +0200
committeros <os@openoffice.org>2010-07-19 17:40:41 +0200
commit787c36414e0537fbf7efab3d98545b0171ee335a (patch)
treed65c9270b4099abc527675df502fa7449138abf8
parent4283794ec5f1738f714defcec5e47c6ee1bdde22 (diff)
#i113084# check auto correction pointer before access
-rw-r--r--sw/source/ui/docvw/edtwin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index e2e59e17831e..7b5741316cbb 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -2261,7 +2261,7 @@ KEYINPUT_CHECKTABLE_INSDEL:
BOOL bIsAutoCorrectChar = SvxAutoCorrect::IsAutoCorrectChar( aCh );
- BOOL bRunNext = pACorr->HasRunNext();
+ BOOL bRunNext = pACorr && pACorr->HasRunNext();
if( !aKeyEvent.GetRepeat() && pACorr && ( bIsAutoCorrectChar || bRunNext ) &&
pACfg->IsAutoFmtByInput() &&
(( pACorr->IsAutoCorrFlag( ChgWeightUnderl ) &&