summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorRene Engelhard <rene@debian.org>2010-11-26 17:50:29 +0100
committerRene Engelhard <rene@debian.org>2010-11-26 17:50:29 +0100
commit299359d0b860d87498729693bfd8fbcb4341496f (patch)
tree8bf3c191701406abc92b2d36eb7aab8c2ba06d55 /editeng
parent6c3199bfcb468b6158c1692ec88e961129962352 (diff)
parent2dda128c4063a124cbbecdeecd34e4b11a927657 (diff)
Merge branch 'libreoffice-3-3'
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 54105cb95ad6..eb009a575c1b 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 == '/' && nEndPos >= 2)
+ 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 );