desktop/source/lib/init.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit b20a64ce05ebf3720dd2d10ccd384020803c2ff2 Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Fri Sep 16 11:26:07 2022 +0300 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Mon Sep 19 10:44:36 2022 +0200 Ignore also when a font has been substituted by itself with an empty style Change-Id: I40fbce716a11b010323ac07e0dacdc114f7d2320 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140135 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <t...@collabora.com> diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 6b932f8c7b53..5e562862da53 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2642,7 +2642,8 @@ static LibreOfficeKitDocument* lo_documentLoadWithOptions(LibreOfficeKit* pThis, if (x.mOriginalFont.indexOf('/') == -1) for (const auto &j : x.mUsedFonts) - if (j.startsWith(OUStringConcatenation(x.mOriginalFont + "/"))) + if (j == x.mOriginalFont || + j.startsWith(OUStringConcatenation(x.mOriginalFont + "/"))) return true; return false;