summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-06-22 16:43:09 +0300
committerخالد حسني <khaled@libreoffice.org>2023-06-23 04:58:03 +0200
commit1adae2e08949c5d73b3bc68b9cda81f8614289c0 (patch)
treeee9ed55fd5a7633e0fd2b7068d3ec2622f2c6d62 /editeng
parentaed0344f9053bddca905d154f2e3b92f35313a7b (diff)
Improve and rename unicode::isIVSSelector()
Check Variation_Selector Unicode property instead of hard-coding variation selector classes. This now handles also Mongolian Variation Selector. Change-Id: I2dd5c4770d7bb9bf4c1e9edc43926fe0863b0da7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153460 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index a2f88c7a5c5d..1ce5f87e0593 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -2367,7 +2367,7 @@ EditPaM ImpEditEngine::DeleteLeftOrRight( const EditSelection& rSel, sal_uInt8 n
{
const OUString& rString = aCurPos.GetNode()->GetString();
sal_Int32 nCode = rString.iterateCodePoints(&nIndex, -1);
- if (unicode::isIVSSelector(nCode) && nIndex > 0 &&
+ if (unicode::isVariationSelector(nCode) && nIndex > 0 &&
unicode::isCJKIVSCharacter(rString.iterateCodePoints(&nIndex, -1)))
{
nCharMode = i18n::CharacterIteratorMode::SKIPCELL;