added safety check
Change-Id: I05ca3e5b176202d26c2f2e45cc674ea54934a30b
This commit is contained in:
parent
9040130ade
commit
4874a0dcbf
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ SlideFragmentHandler::~SlideFragmentHandler() throw()
|
|||
case A_TOKEN( overrideClrMapping ):
|
||||
case PPT_TOKEN( clrMap ): // CT_ColorMapping
|
||||
{
|
||||
oox::drawingml::ClrMapPtr pClrMapPtr( aElementToken == PPT_TOKEN( clrMap ) ? new oox::drawingml::ClrMap() : new oox::drawingml::ClrMap( *mpSlidePersistPtr->getClrMap() ) );
|
||||
oox::drawingml::ClrMapPtr pClrMapPtr( ( aElementToken == PPT_TOKEN( clrMap ) || !mpSlidePersistPtr.get() ) ? new oox::drawingml::ClrMap() : new oox::drawingml::ClrMap( *mpSlidePersistPtr->getClrMap() ) );
|
||||
ContextHandlerRef ret = new oox::drawingml::clrMapContext( *this, rAttribs.getFastAttributeList(), *pClrMapPtr );
|
||||
mpSlidePersistPtr->setClrMap( pClrMapPtr );
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue