diff options
author | Tino Rachui <tra@openoffice.org> | 2001-03-16 15:33:30 +0000 |
---|---|---|
committer | Tino Rachui <tra@openoffice.org> | 2001-03-16 15:33:30 +0000 |
commit | 52dbacf7cd5f28ac400b6a60693a522d371d7609 (patch) | |
tree | 036bf3eab71b2df4aec1e306b7449000f5c141ce /dtrans/source/win32/dtobj/DataFmtTransl.cxx | |
parent | MtaOleClipb.cxx (diff) | |
download | core-52dbacf7cd5f28ac400b6a60693a522d371d7609.tar.gz core-52dbacf7cd5f28ac400b6a60693a522d371d7609.zip |
*** empty log message ***
Diffstat (limited to 'dtrans/source/win32/dtobj/DataFmtTransl.cxx')
-rw-r--r-- | dtrans/source/win32/dtobj/DataFmtTransl.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/dtrans/source/win32/dtobj/DataFmtTransl.cxx b/dtrans/source/win32/dtobj/DataFmtTransl.cxx index 570347b7a8e0..25b7d7191bf3 100644 --- a/dtrans/source/win32/dtobj/DataFmtTransl.cxx +++ b/dtrans/source/win32/dtobj/DataFmtTransl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: DataFmtTransl.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: tra $ $Date: 2001-03-16 09:00:32 $ + * last change: $Author: tra $ $Date: 2001-03-16 16:31:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -305,12 +305,13 @@ LCID SAL_CALL CDataFormatTranslator::getCurrentLocaleFromClipboard( try { aAny = refXTransferable->getTransferData( aFlavor ); - OSL_ASSERT( aAny.hasValue( ) && (aAny.getValueType( ) == CPPUTYPE_SEQSALINT8) ); - - Sequence< sal_Int8 > byteStream; - aAny >>= byteStream; + if ( aAny.hasValue( ) && (aAny.getValueType( ) == CPPUTYPE_SEQSALINT8) ); + { + Sequence< sal_Int8 > byteStream; + aAny >>= byteStream; - lcid = *reinterpret_cast< LCID* >( byteStream.getArray( ) ); + lcid = *reinterpret_cast< LCID* >( byteStream.getArray( ) ); + } } catch( UnsupportedFlavorException& ) { |