From 9671a3d31e279a40378a7ddf05e57df982e4bc98 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 16 Sep 2024 17:33:44 +0100 Subject: This should iterate over the thesaurus languages, not the spelling ones MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I94410274f7afbc0a6bc33fe43beb9810a905dfe4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173467 Tested-by: Jenkins CollaboraOffice Reviewed-by: Miklos Vajna Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173556 Reviewed-by: Caolán McNamara Tested-by: Jenkins --- desktop/source/lib/init.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop/source') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index ad8787c5173b..068fa78fdff3 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -7942,7 +7942,7 @@ static void preloadData() // preload all available thesauri css::uno::Reference xThesaurus(xLngSvcMgr->getThesaurus()); - css::uno::Reference xThesLocales(xSpellChecker, css::uno::UNO_QUERY_THROW); + css::uno::Reference xThesLocales(xThesaurus, css::uno::UNO_QUERY_THROW); aLocales = xThesLocales->getLocales(); std::cerr << "Preloading local thesauri: "; for (const auto& it : aLocales) -- cgit