summaryrefslogtreecommitdiff
path: root/cui
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:00 +0100
commit847cdd8efd0662d61d288a4d944edc30e864d145 (patch)
treec7f6f74dce77c7c5762b745fcd7f4447201cf11b /cui
parentcc6599137796797772b3395c79b35af48e368cce (diff)
Resolves: tdf#97839 a single character may be more than 1 utf-16 code points
Change-Id: Iba2460bfb9335615796db3f5e233b870a8d63339
Diffstat (limited to 'cui')
-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()));
}
}