diff options
Diffstat (limited to 'sot/source')
-rw-r--r-- | sot/source/base/exchange.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx index 84a2427d334b..d00565d618fd 100644 --- a/sot/source/base/exchange.cxx +++ b/sot/source/base/exchange.cxx @@ -442,7 +442,7 @@ SotClipboardFormatId SotExchange::GetFormat( const DataFlavor& rFlavor ) { const char* const pFormatMimeType = pFormatArray_Impl[ static_cast<int>(i) ].pMimeType; const sal_Int32 nFormatMimeTypeLen = rtl_str_getLength( pFormatMimeType ); - if( rMimeType.startsWithAsciiL( pFormatMimeType, nFormatMimeTypeLen ) && + if( rMimeType.matchAsciiL( pFormatMimeType, nFormatMimeTypeLen ) && ( rMimeType.getLength() == nFormatMimeTypeLen || rMimeType[ nFormatMimeTypeLen ] == ';' ) ) return ( (i == SotClipboardFormatId::STARCHARTDOCUMENT_50) |