summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-05-29 20:26:12 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-05-30 08:39:31 +0000
commitb8c52df3452208b97dcc59d010a33de4be70101b (patch)
treec8a0e9cd3340cfc30760f54194b419fec70b87c2
parent91bf25bce0c8aa6c4c303fed3a127cdb611b36c2 (diff)
Resolves: tdf#97839 a single character may be more than 1 utf-16 code points
Change-Id: Iba2460bfb9335615796db3f5e233b870a8d63339 (cherry picked from commit 847cdd8efd0662d61d288a4d944edc30e864d145) (cherry picked from commit f0e35cb2fb6f0f595d44c7a7c01ddaf60b19d642) Reviewed-on: https://gerrit.libreoffice.org/25638 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--cui/source/dialogs/cuicharmap.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx
index 62346d850cea..6d865cd03a81 100644
--- a/cui/source/dialogs/cuicharmap.cxx
+++ b/cui/source/dialogs/cuicharmap.cxx
@@ -530,7 +530,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()));
}
}