diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-03-01 10:50:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-03-01 12:20:24 +0000 |
commit | a526370737099b57b399f2ca8de43e74e24ab794 (patch) | |
tree | 3e81a72060b06e5e3b5de1c9d0b249349906ca30 /editeng/source/misc | |
parent | 4a05ab1dd4c7da10810fec9948b2de76b7bdd0b6 (diff) |
Related: fdo#55693 add regression tests for autocorrection
Change-Id: Ie9bbeb38ec9cc2fa0377709e75abb0338b20bab5
Diffstat (limited to 'editeng/source/misc')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index e0a018029b04..fb05f4d7c078 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -1458,12 +1458,15 @@ sal_uLong SvxAutoCorrect::AutoCorrect( SvxAutoCorrDoc& rDoc, const String& rTxt, if( nHelpId ) { - nHelpId -= 1; - Application::GetHelp()->OpenHelpAgent( aHelpIds[nHelpId] ); + Help* pHelp = Application::GetHelp(); + if (pHelp) + { + nHelpId -= 1; + Application::GetHelp()->OpenHelpAgent( aHelpIds[nHelpId] ); + } } } - return nRet; } |