diff options
author | Eike Rathke <er@openoffice.org> | 2002-04-03 13:34:41 +0000 |
---|---|---|
committer | Eike Rathke <er@openoffice.org> | 2002-04-03 13:34:41 +0000 |
commit | 69aa6331dc13d7591c4949346a0ff35422867333 (patch) | |
tree | bfcad430a231ade87618f1511021fc32559fcd27 | |
parent | 35aaf9f6f3e82e3bd7dc472aa05831288566a73c (diff) |
#98247# remove RTL_TEXTENCODING_STD_COUNT
-rw-r--r-- | sc/source/filter/html/htmlpars.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx index 91b25c63f599..4895de7ba910 100644 --- a/sc/source/filter/html/htmlpars.cxx +++ b/sc/source/filter/html/htmlpars.cxx @@ -2,9 +2,9 @@ * * $RCSfile: htmlpars.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: nn $ $Date: 2002-03-04 19:35:55 $ + * last change: $Author: er $ $Date: 2002-04-03 14:34:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1951,9 +1951,8 @@ void ScHTMLParser::ProcToken( ImportInfo* pInfo ) // If the encoding is set by a META tag, it may only overwrite the // current encoding if both, the current and the new encoding, are 1-BYTE // encodings. Everything else cannot lead to reasonable results. - if( RTL_TEXTENCODING_DONTKNOW != eEnc && - eEnc < RTL_TEXTENCODING_STD_COUNT && - pParser->GetSrcEncoding() < RTL_TEXTENCODING_STD_COUNT ) + if ( rtl_isOctetTextEncoding( eEnc ) && + rtl_isOctetTextEncoding( pParser->GetSrcEncoding() ) ) { eEnc = GetExtendedCompatibilityTextEncoding( eEnc ); pParser->SetSrcEncoding( eEnc ); |