diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2014-03-10 12:05:32 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-03-25 11:37:05 +0200 |
commit | e319ec817a1b400420cb4708bf5567ca996093a1 (patch) | |
tree | 85379e5990404312ae78036dfe66e43737ab292b /cui | |
parent | c5a20795cb70573564126c732a0f2724d0866d06 (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
Diffstat (limited to 'cui')
-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 ); |