summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/hldoctp.cxx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2014-03-10 12:05:32 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-03-10 05:47:06 -0500
commitfc4ce3f5d0c630623eca5b55f8083d54e5beeeee (patch)
tree51694744ffaa9444bcfa45f2408aa492c5bde3e6 /cui/source/dialogs/hldoctp.cxx
parent3ba58a22bdd51cd4221547e0a0e95b6d2b987358 (diff)
fdo#75968 Fix OUString conversion
Change-Id: Ie865b16c163d47de34ab2fe23bb7432b7710877f Reviewed-on: https://gerrit.libreoffice.org/8510 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/dialogs/hldoctp.cxx')
-rw-r--r--cui/source/dialogs/hldoctp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx
index c216d25064c3..8148680db6e4 100644
--- a/cui/source/dialogs/hldoctp.cxx
+++ b/cui/source/dialogs/hldoctp.cxx
@@ -100,7 +100,7 @@ void SvxHyperlinkDocTp::FillDlgFields(const OUString& rStrURL)
// set target in document at editfield
OUString aStrMark;
if ( nPos != -1 && nPos < rStrURL.getLength()-1 )
- aStrMark = rStrURL.copy( nPos+1, rStrURL.getLength() );
+ aStrMark = rStrURL.copy( nPos+1, rStrURL.getLength() - nPos - 1 );
maEdTarget.SetText ( aStrMark );
ModifiedPathHdl_Impl ( NULL );