[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - cui/source

Maxim Monastirsky momonasmon at gmail.com
Mon Mar 10 03:55:15 PDT 2014


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

New commits:
commit 7b3b1717546deb4956d322f05a16bcaba0f78cda
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>
    (cherry picked from commit fc4ce3f5d0c630623eca5b55f8083d54e5beeeee)
    Reviewed-on: https://gerrit.libreoffice.org/8511

diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx
index 865b0e5..38d4995 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