From a8725c24fa4d89ec2efddf6f341d403abf79865a Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Thu, 16 Mar 2023 14:20:45 +0200 Subject: tdf#153704: Make sure the last script segment is also added MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id6381d77cdf05c24a1b557206f530f4e004e8e52 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148986 Tested-by: Jenkins Reviewed-by: خالد حسني --- svx/source/styles/CommonStylePreviewRenderer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx/source/styles') 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; } -- cgit