diff options
Diffstat (limited to 'svx/source/styles/CommonStylePreviewRenderer.cxx')
-rw-r--r-- | svx/source/styles/CommonStylePreviewRenderer.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/styles/CommonStylePreviewRenderer.cxx b/svx/source/styles/CommonStylePreviewRenderer.cxx index 9ddf3cf15017..0ca34abe9a36 100644 --- a/svx/source/styles/CommonStylePreviewRenderer.cxx +++ b/svx/source/styles/CommonStylePreviewRenderer.cxx @@ -418,7 +418,9 @@ void CommonStylePreviewRenderer::CheckScript() for (sal_Int32 i = 1; i <= maScriptText.getLength(); i++) { auto aNextScript = aEditEngine.GetScriptType({ 0, i, 0, i }); - if (aNextScript != aScript || i == maScriptText.getLength()) + if (aNextScript != aScript) + maScriptChanges.emplace_back(aScript, i - 1); + else if (i == maScriptText.getLength()) maScriptChanges.emplace_back(aScript, i); aScript = aNextScript; } |