summaryrefslogtreecommitdiff
path: root/svx/source/dialog/txencbox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/dialog/txencbox.cxx')
-rw-r--r--svx/source/dialog/txencbox.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/dialog/txencbox.cxx b/svx/source/dialog/txencbox.cxx
index b4e446aeee3f..4b6adfc28890 100644
--- a/svx/source/dialog/txencbox.cxx
+++ b/svx/source/dialog/txencbox.cxx
@@ -226,6 +226,7 @@ void SvxTextEncodingBox::SelectTextEncoding( const rtl_TextEncoding nEnc )
TextEncodingBox::TextEncodingBox(weld::ComboBoxText* pControl)
: m_xControl(pControl)
{
+ m_xControl->make_sorted();
}
TextEncodingBox::~TextEncodingBox()
@@ -235,6 +236,7 @@ TextEncodingBox::~TextEncodingBox()
void TextEncodingBox::FillFromTextEncodingTable(
bool bExcludeImportSubsets )
{
+ m_xControl->freeze();
const sal_uInt32 nCount = SAL_N_ELEMENTS(RID_SVXSTR_TEXTENCODING_TABLE);
for (sal_uInt32 j = 0; j < nCount; ++j)
{
@@ -255,9 +257,9 @@ void TextEncodingBox::FillFromTextEncodingTable(
if ( bInsert )
InsertTextEncoding(nEnc, SvxResId(RID_SVXSTR_TEXTENCODING_TABLE[j].first));
}
+ m_xControl->thaw();
}
-
void TextEncodingBox::InsertTextEncoding( const rtl_TextEncoding nEnc,
const OUString& rEntry )
{