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 | 4a4d007da2e14319bf7d662d82a2d3fbcf11784d (patch) | |
tree | ce224df84d8a25fbf906dc18a913463dcb3c7882 | |
parent | 9dc37fd9bb18879fc379bf345c1fb6cea03172e9 (diff) |
Resolves: rhbz#647392# Ensure autocorrect doesn't crash
-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 95575fd608bf..54105cb95ad6 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 ); |