summaryrefslogtreecommitdiff
path: root/svx/source/styles
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@aliftype.com>2023-03-16 14:20:45 +0200
committerخالد حسني <khaled@aliftype.com>2023-03-16 15:27:36 +0000
commita8725c24fa4d89ec2efddf6f341d403abf79865a (patch)
treee44df3b0883da7b6f85b653d41e1db883c212ebf /svx/source/styles
parentcea9c205cee53f3bcc72129ae00be5fa1835896f (diff)
tdf#153704: Make sure the last script segment is also added
Change-Id: Id6381d77cdf05c24a1b557206f530f4e004e8e52 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148986 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'svx/source/styles')
-rw-r--r--svx/source/styles/CommonStylePreviewRenderer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/styles/CommonStylePreviewRenderer.cxx b/svx/source/styles/CommonStylePreviewRenderer.cxx
index 0ca34abe9a36..c23861e92a72 100644
--- a/svx/source/styles/CommonStylePreviewRenderer.cxx
+++ b/svx/source/styles/CommonStylePreviewRenderer.cxx
@@ -420,7 +420,7 @@ void CommonStylePreviewRenderer::CheckScript()
auto aNextScript = aEditEngine.GetScriptType({ 0, i, 0, i });
if (aNextScript != aScript)
maScriptChanges.emplace_back(aScript, i - 1);
- else if (i == maScriptText.getLength())
+ if (i == maScriptText.getLength())
maScriptChanges.emplace_back(aScript, i);
aScript = aNextScript;
}