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

Caolán McNamara caolanm at redhat.com
Sun May 29 19:28:35 UTC 2016


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

New commits:
commit f0e35cb2fb6f0f595d44c7a7c01ddaf60b19d642
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun May 29 20:26:12 2016 +0100

    Resolves: tdf#97839 a single character may be more than 1 utf-16 code points
    
    Change-Id: Iba2460bfb9335615796db3f5e233b870a8d63339
    (cherry picked from commit 847cdd8efd0662d61d288a4d944edc30e864d145)

diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx
index dc582d6..dff40ae 100644
--- a/cui/source/dialogs/cuicharmap.cxx
+++ b/cui/source/dialogs/cuicharmap.cxx
@@ -518,7 +518,7 @@ IMPL_LINK_NOARG_TYPED(SvxCharacterMap, CharSelectHdl, SvxShowCharSet*, void)
             else
                 m_pShowText->SetText( aOUStr );
 
-            m_pShowText->SetSelection( Selection( nPos + 1 ) );
+            m_pShowText->SetSelection(Selection(nPos + aOUStr.getLength()));
         }
 
     }


More information about the Libreoffice-commits mailing list