[Libreoffice-commits] core.git: xmloff/source

Caolán McNamara caolanm at redhat.com
Tue Dec 9 01:52:10 PST 2014


 xmloff/source/draw/sdxmlexp.cxx |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

New commits:
commit bfd63516c9fd4ec366576f9a0e3c456bc3d530a3
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Dec 9 09:51:09 2014 +0000

    Resolves: fdo#87108 crash on saving fodg
    
    Change-Id: Ib88f0e9b0a3ba229c9e9f6cf20831c16051e3e29

diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx
index 2988a49..03b7859 100644
--- a/xmloff/source/draw/sdxmlexp.cxx
+++ b/xmloff/source/draw/sdxmlexp.cxx
@@ -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);
     }
 }
 


More information about the Libreoffice-commits mailing list