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

Thorsten Behrens tbehrens at suse.com
Tue May 14 16:31:44 PDT 2013


 oox/source/ppt/extdrawingfragmenthandler.cxx |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 0f15a477aaba2f69a13c0bc61c5c8c7a47314680
Author: Thorsten Behrens <tbehrens at suse.com>
Date:   Wed May 15 01:28:50 2013 +0200

    Fix fdo#64579 Don't assume dsp:dataModelExt has valid DrawingML.
    
    Just don't assume the DSP_TOKEN( spTree ) was seen in input.
    
    Change-Id: Iaabdcafdfcfc995198c1265e975df4dde8e0a39c

diff --git a/oox/source/ppt/extdrawingfragmenthandler.cxx b/oox/source/ppt/extdrawingfragmenthandler.cxx
index bc1adf3..7fecb89 100644
--- a/oox/source/ppt/extdrawingfragmenthandler.cxx
+++ b/oox/source/ppt/extdrawingfragmenthandler.cxx
@@ -65,8 +65,11 @@ ExtDrawingFragmentHandler::createFastChildContext( ::sal_Int32 aElement,
 }
 void SAL_CALL ExtDrawingFragmentHandler::endDocument() throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException)
 {
-    mpShapePtr->moveAllToPosition( mpOrgShapePtr->getPosition() );
-    mpShapePtr->setName( mpOrgShapePtr->getName() );
+    if( mpShapePtr )
+    {
+        mpShapePtr->moveAllToPosition( mpOrgShapePtr->getPosition() );
+        mpShapePtr->setName( mpOrgShapePtr->getName() );
+    }
 }
 
 } }


More information about the Libreoffice-commits mailing list