Kaydet (Commit) bfd63516 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#87108 crash on saving fodg

Change-Id: Ib88f0e9b0a3ba229c9e9f6cf20831c16051e3e29
üst c0dcf497
......@@ -2552,10 +2552,13 @@ void SdXMLExport::GetConfigurationSettings(uno::Sequence<beans::PropertyValue>&
Reference< beans::XPropertySet > xProps( xFac->createInstance("com.sun.star.document.Settings"), UNO_QUERY );
if( xProps.is() )
SvXMLUnitConverter::convertPropertySet( rProps, xProps );
DocumentSettingsSerializer *pFilter;
pFilter = dynamic_cast<DocumentSettingsSerializer *>(xProps.get());
if( pFilter )
rProps = pFilter->filterStreamsToStorage( GetTargetStorage(), rProps );
DocumentSettingsSerializer *pFilter(dynamic_cast<DocumentSettingsSerializer *>(xProps.get()));
if (!pFilter)
return;
const uno::Reference< embed::XStorage > xStorage(GetTargetStorage());
if (!xStorage.is())
return;
rProps = pFilter->filterStreamsToStorage(xStorage, rProps);
}
}
......
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