Kaydet (Commit) 112e5f30 authored tarafından Miklos Vajna's avatar Miklos Vajna

embeddedobj: allow embedding objects lacking a FileFormatVersion=6800 filter

The "own" filter of Base has FileFormatVersion=6200.

Change-Id: I3bbd28ebcf4d517ea9cefe692b01b688358c51e8
üst 2e2b350f
......@@ -768,6 +768,10 @@ void OCommonEmbeddedObject::StoreDocToStorage_Impl(
{
OUString aFilterName = GetFilterName( nStorageFormat );
// No filter found? Try the older format, e.g. Base has only that.
if (aFilterName.isEmpty() && nStorageFormat == SOFFICE_FILEFORMAT_CURRENT)
aFilterName = GetFilterName( SOFFICE_FILEFORMAT_60 );
SAL_WARN_IF( aFilterName.isEmpty(), "embeddedobj.common", "Wrong document service name!" );
if ( aFilterName.isEmpty() )
throw io::IOException(); // TODO:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment