From 847cdd8efd0662d61d288a4d944edc30e864d145 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 29 May 2016 20:26:12 +0100 Subject: Resolves: tdf#97839 a single character may be more than 1 utf-16 code points Change-Id: Iba2460bfb9335615796db3f5e233b870a8d63339 --- cui/source/dialogs/cuicharmap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx index dc582d6bf214..dff40ae7cea9 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())); } } -- cgit v1.2.3