summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-11-26 11:03:24 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-11-27 23:00:04 -0600
commitad6f9f2f00df27eec2fc6e640eb1a662644de6a4 (patch)
tree62431406830814a99c0815202a2761a7465b6414 /editeng/source
parentc7709b460394283fd5b1d2779b6af3585f80a991 (diff)
String=>OUString of svl's urihelper
Change-Id: Ib4d9175ce4661140a147962b8f45be40f800d85a
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/misc/svxacorr.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index df6d2766262d..930e5406ab74 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -690,8 +690,13 @@ sal_Bool SvxAutoCorrect::FnSetINetAttr( SvxAutoCorrDoc& rDoc, const String& rTxt
xub_StrLen nSttPos, xub_StrLen nEndPos,
LanguageType eLang )
{
- String sURL( URIHelper::FindFirstURLInText( rTxt, nSttPos, nEndPos,
+ sal_Int32 nStart(nSttPos);
+ sal_Int32 nEnd(nEndPos);
+
+ String sURL( URIHelper::FindFirstURLInText( rTxt, nStart, nEnd,
GetCharClass( eLang ) ));
+ nSttPos = (xub_StrLen)nStart;
+ nEndPos = (xub_StrLen)nEnd;
sal_Bool bRet = 0 != sURL.Len();
if( bRet ) // also Attribut setzen:
rDoc.SetINetAttr( nSttPos, nEndPos, sURL );