summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-05-29 20:26:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-05-29 20:27:48 +0100
commitf0e35cb2fb6f0f595d44c7a7c01ddaf60b19d642 (patch)
tree4f5ece14963e093ebab5965a85d142011e4cad1c
parentf4aa18f622964ca8d5258c42c9360edfb3e8096d (diff)
Resolves: tdf#97839 a single character may be more than 1 utf-16 code points
Change-Id: Iba2460bfb9335615796db3f5e233b870a8d63339 (cherry picked from commit 847cdd8efd0662d61d288a4d944edc30e864d145)
-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 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()));
}
}