summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobo <obo@openoffice.org>2010-11-25 11:51:51 +0100
committerobo <obo@openoffice.org>2010-11-25 11:51:51 +0100
commit2a0abc9acfea536ef68ab2083e6f57aaa9e860d0 (patch)
tree90cb4140b183b835f36352930f674e0a20c6cecc
parent79df60d709cade49cbd73550ea08d33a07395e99 (diff)
masterfix OOO330: #i115774# crash in FR version when typing / as first characterooo/OOO330_m17
-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 8eea009a4e..672223aa1d 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 );