diff options
-rw-r--r-- | svx/source/dialog/txencbox.cxx | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/svx/source/dialog/txencbox.cxx b/svx/source/dialog/txencbox.cxx index e4ba0b09a9d3..b4e446aeee3f 100644 --- a/svx/source/dialog/txencbox.cxx +++ b/svx/source/dialog/txencbox.cxx @@ -240,23 +240,20 @@ void TextEncodingBox::FillFromTextEncodingTable( { bool bInsert = true; rtl_TextEncoding nEnc = RID_SVXSTR_TEXTENCODING_TABLE[j].second; - if ( bInsert ) + if ( bExcludeImportSubsets ) { - if ( bExcludeImportSubsets ) + switch ( nEnc ) { - switch ( nEnc ) - { - // subsets of RTL_TEXTENCODING_GB_18030 - case RTL_TEXTENCODING_GB_2312 : - case RTL_TEXTENCODING_GBK : - case RTL_TEXTENCODING_MS_936 : - bInsert = false; - break; - } + // subsets of RTL_TEXTENCODING_GB_18030 + case RTL_TEXTENCODING_GB_2312 : + case RTL_TEXTENCODING_GBK : + case RTL_TEXTENCODING_MS_936 : + bInsert = false; + break; } - if ( bInsert ) - InsertTextEncoding(nEnc, SvxResId(RID_SVXSTR_TEXTENCODING_TABLE[j].first)); } + if ( bInsert ) + InsertTextEncoding(nEnc, SvxResId(RID_SVXSTR_TEXTENCODING_TABLE[j].first)); } } |