Kaydet (Commit) 4897f10b authored tarafından Miklos Vajna's avatar Miklos Vajna

SfxObjectShell::CopyStoragesOfUnknownMediaType: still try to copy Base streams

When Base is embedded in a Writer document, we still need this when the
document is saved for the first time after embedding.

Change-Id: I1103da01838abd4ac1b03dc4d44e10db3ce650bc
üst 23c467fd
......@@ -3484,12 +3484,11 @@ bool SfxObjectShell::CopyStoragesOfUnknownMediaType( const uno::Reference< embed
case SotClipboardFormatId::STARCALC_8:
case SotClipboardFormatId::STARCHART_8:
case SotClipboardFormatId::STARMATH_8:
case SotClipboardFormatId::STARBASE_8:
break;
default:
{
OSL_ENSURE( aSubElements[nInd] == "Configurations2" || !xTarget->hasByName( aSubElements[nInd] ),
OSL_ENSURE( aSubElements[nInd] == "Configurations2" || nFormat == SotClipboardFormatId::STARBASE_8 || !xTarget->hasByName( aSubElements[nInd] ),
"The target storage is an output storage, the element should not exist in the target!\n" );
if ( !xTarget->hasByName( aSubElements[nInd] ) )
......
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