summaryrefslogtreecommitdiffstats
path: root/svx/source/dialog/txencbox.cxx
diff options
context:
space:
mode:
authorEike Rathke <er@openoffice.org>2001-08-14 10:45:56 +0000
committerEike Rathke <er@openoffice.org>2001-08-14 10:45:56 +0000
commit3c662515e60954ca859ba995388a79a1e9057dae (patch)
tree8142193a814fcff4bd475667ba92838a430a50e9 /svx/source/dialog/txencbox.cxx
parent#65293#: added unotools to dependencies (diff)
downloadcore-3c662515e60954ca859ba995388a79a1e9057dae.tar.gz
core-3c662515e60954ca859ba995388a79a1e9057dae.zip
#90761# FillFromDbTextEncodingMap: exclude RTL_TEXTENCODING_DONTKNOW
Diffstat (limited to 'svx/source/dialog/txencbox.cxx')
-rw-r--r--svx/source/dialog/txencbox.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/svx/source/dialog/txencbox.cxx b/svx/source/dialog/txencbox.cxx
index 393b2ddcec43..89449d720cee 100644
--- a/svx/source/dialog/txencbox.cxx
+++ b/svx/source/dialog/txencbox.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txencbox.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: er $ $Date: 2001-08-14 10:21:43 $
+ * last change: $Author: er $ $Date: 2001-08-14 11:45:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -179,7 +179,12 @@ void SvxTextEncodingBox::FillFromDbTextEncodingMap(
{
for ( sal_Int32 j=0; j<nCount; j++ )
{
- InsertTextEncoding( rtl_TextEncoding( aEncs[j] ) );
+ rtl_TextEncoding nEnc = rtl_TextEncoding( aEncs[j] );
+ // CharsetMap offers a RTL_TEXTENCODING_DONTKNOW for internal use,
+ // makes no sense here and would result in an empty string as list
+ // entry.
+ if ( nEnc != RTL_TEXTENCODING_DONTKNOW )
+ InsertTextEncoding( nEnc );
}
}
}