summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2010-11-30 16:19:53 +0100
committerIvo Hinkelmann <ihi@openoffice.org>2010-11-30 16:19:53 +0100
commitf9c03e6704fb1a2caeb2a152c493708505e9df67 (patch)
tree4aba461736876772fb199fb2f19ce5f25b25f355 /editeng
parent8e7be2d16b30830d547e7478e55fe0e32e149b7d (diff)
parent406dec43952fa9a7afa55738c6e7df317ad26275 (diff)
OOO330
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/misc/svxacorr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index ae977b2ed0d7..f2481e79eb22 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -701,7 +701,7 @@ BOOL SvxAutoCorrect::FnAddNonBrkSpace(
bRunNext = true;
}
}
- else if ( cChar == '/' )
+ else if ( cChar == '/' && nEndPos > 1 && rTxt.Len() > (nEndPos - 1) )
{
// Remove the hardspace right before to avoid formatting URLs
sal_Unicode cPrevChar = rTxt.GetChar( nEndPos - 1 );