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 13:17:33 +0000 |
commit | c2aeb3007de725b9dd8b7771d11cebfcba076bf5 (patch) | |
tree | 31e1853bfdba1e79938043ae0bea57258de2a0a6 /editeng | |
parent | 34ef0f5df244acf980a2122507a797f7c6e96824 (diff) |
Resolves: rhbz#647392# Ensure autocorrect doesn't crash
Diffstat (limited to 'editeng')
-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 b80ba29a22..65787328c4 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -690,7 +690,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 ); |