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

Resolves: rhbz#806663 SlideshowImpl can outlive SdModule (somehow)

üst adf7d6e1
......@@ -593,7 +593,10 @@ SlideshowImpl::SlideshowImpl( const Reference< XPresentation2 >& xPresentation,
SlideshowImpl::~SlideshowImpl()
{
SdOptions* pOptions = SD_MOD()->GetSdOptions(DOCUMENT_TYPE_IMPRESS);
SdModule *pModule = SD_MOD();
//rhbz#806663 SlideshowImpl can outlive SdModule
SdOptions* pOptions = pModule ?
pModule->GetSdOptions(DOCUMENT_TYPE_IMPRESS) : NULL;
if( pOptions )
{
pOptions->SetPresentationPenColor(mnUserPaintColor);
......
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