diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2014-03-10 12:05:32 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-10 05:54:56 -0500 |
commit | 7b3b1717546deb4956d322f05a16bcaba0f78cda (patch) | |
tree | 3e6eeabc831c47c5b1cafd6b1ed0aa1ee2133827 | |
parent | 8ad2aec13205d308341da8519e15a3187b633b91 (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>
(cherry picked from commit fc4ce3f5d0c630623eca5b55f8083d54e5beeeee)
Reviewed-on: https://gerrit.libreoffice.org/8511
-rw-r--r-- | cui/source/dialogs/hldoctp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx index 865b0e54239d..38d49953787e 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 ); |