diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-12 13:17:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-12 21:21:24 +0000 |
commit | dfd74e58ef7041d816510fa4c3975a047980d4fe (patch) | |
tree | e1992715deb73b8bd6649fb389276a72a04bee5f /editeng/source/misc | |
parent | 25bb8e3278014664546ea5f8e4e31b77ef6e970c (diff) |
Resolves: rhbz#647392# Ensure autocorrect doesn't crash
Diffstat (limited to 'editeng/source/misc')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 773523d5999f..fb9be2fc3911 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -700,7 +700,7 @@ BOOL SvxAutoCorrect::FnAddNonBrkSpace( bRunNext = true; } } - else if ( cChar == '/' ) + else if (cChar == '/' && nEndPos >= 2) { // Remove the hardspace right before to avoid formatting URLs sal_Unicode cPrevChar = rTxt.GetChar( nEndPos - 1 ); |