summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/source/dialog/fntctrl.cxx2
-rw-r--r--svx/source/styles/CommonStylePreviewRenderer.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx
index 031eb7dabc91..ba372d92f0d3 100644
--- a/svx/source/dialog/fntctrl.cxx
+++ b/svx/source/dialog/fntctrl.cxx
@@ -252,7 +252,7 @@ void FontPrevWin_Impl::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;
}
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;
}