[Libreoffice-commits] core.git: cui/source

Maxim Monastirsky momonasmon at gmail.com
Mon Mar 10 03:47:27 PDT 2014


 cui/source/dialogs/hldoctp.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fc4ce3f5d0c630623eca5b55f8083d54e5beeeee
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date:   Mon Mar 10 12:05:32 2014 +0200

    fdo#75968 Fix OUString conversion
    
    Change-Id: Ie865b16c163d47de34ab2fe23bb7432b7710877f
    Reviewed-on: https://gerrit.libreoffice.org/8510
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx
index c216d25..8148680 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 );


More information about the Libreoffice-commits mailing list