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
commit406dec43952fa9a7afa55738c6e7df317ad26275 (patch)
tree87e27057643e82cd40a983941ae4e1afe7b3f829
parent12c1007715f214a9cb497752157a83a6d9d4b579 (diff)
masterfix OOO330: #i115774# crash in FR version when typing / as first character
Notes
split repo tag: libs-core_ooo/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 f969a8033f08..b7124881c90e 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 );