diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/global.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx index 0e2256620ffe..e764bfe8e4c8 100644 --- a/sc/source/core/data/global.cxx +++ b/sc/source/core/data/global.cxx @@ -662,7 +662,7 @@ rtl_TextEncoding ScGlobal::GetCharsetValue( const OUString& rCharSet ) if ( CharClass::isAsciiNumeric( rCharSet ) ) { sal_Int32 nVal = rCharSet.toInt32(); - if ( !nVal || nVal == RTL_TEXTENCODING_DONTKNOW ) + if ( nVal == RTL_TEXTENCODING_DONTKNOW ) return osl_getThreadTextEncoding(); return (rtl_TextEncoding) nVal; } |