[Libreoffice-commits] core.git: svx/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Oct 9 19:17:05 UTC 2018
svx/source/dialog/langbox.cxx | 19 -------------------
1 file changed, 19 deletions(-)
New commits:
commit 359940c4b43e7db0786800a0cf4e76039da7eff9
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Oct 9 17:13:18 2018 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Oct 9 21:16:43 2018 +0200
filling the language list just to replace it entirely
Change-Id: I1f79038f2a5cc455a50a532870c4042588c3e446
Reviewed-on: https://gerrit.libreoffice.org/61595
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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<weld::ComboBox> 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 )
More information about the Libreoffice-commits
mailing list