From 359940c4b43e7db0786800a0cf4e76039da7eff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 9 Oct 2018 17:13:18 +0100 Subject: [PATCH] filling the language list just to replace it entirely MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1f79038f2a5cc455a50a532870c4042588c3e446 Reviewed-on: https://gerrit.libreoffice.org/61595 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- svx/source/dialog/langbox.cxx | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx index a0c7bc7ce707..4c22822f5eb8 100644 --- a/svx/source/dialog/langbox.cxx +++ b/svx/source/dialog/langbox.cxx @@ -812,25 +812,6 @@ LanguageBox::LanguageBox(std::unique_ptr pControl) { m_xControl->make_sorted(); m_xControl->connect_changed(LINK(this, LanguageBox, ChangeHdl)); - - m_xControl->freeze(); - sal_uInt32 nCount = SvtLanguageTable::GetLanguageEntryCount(); - for (sal_uInt32 i = 0; i < nCount; ++i) - { - LanguageType nLangType = SvtLanguageTable::GetLanguageTypeAtIndex(i); - - bool bInsert = true; - if ((LANGUAGE_DONTKNOW == nLangType) || (LANGUAGE_SYSTEM == nLangType)) - { - bInsert = false; - } - - if (!bInsert) - continue; - - InsertLanguage(nLangType); - } - m_xControl->thaw(); } SvxLanguageBox::SvxLanguageBox( vcl::Window* pParent, WinBits nBits )